.site-header{
  --header-bg: rgba(3, 9, 20, 0.35);
  --header-text: #fff;
  --header-border: rgba(255,255,255,0.08);
  --header-blur: 14px;

  position: sticky;
  top: 0;
  z-index: 1200;
  background: var(--header-bg);
  color: var(--header-text);
  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 12px 34px rgba(0,0,0,0.28);
  backdrop-filter: blur(var(--header-blur));
  -webkit-backdrop-filter: blur(var(--header-blur));
}

.site-header--public{
  --header-bg: rgba(4, 12, 26, 0.38);
  --header-border: rgba(255,255,255,0.12);
  box-shadow: 0 16px 40px rgba(0,0,0,0.32);
}

.site-header--app{
  --header-bg: #0f172a;
  --header-border: rgba(0,0,0,0.35);
  box-shadow: 0 10px 26px rgba(0,0,0,0.24);
}

.site-header .wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--header-text);
}

.brand img{
  height: 46px;
  max-height: 56px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}

.brand-label{
  font-weight: 700;
  letter-spacing: 0.01em;
}

.main-nav{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.app-nav{
  gap: 10px;
}

.main-nav a{
  text-decoration: none;
  color: rgba(255,255,255,0.82);
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
}

.main-nav a:hover{
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.main-nav a.active{
  color: #fff;
  background: rgba(255,255,255,0.16);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.header-actions{
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.header-actions .link{
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
}

.header-actions .link:hover{
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.btn{
  border: none;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn.cta{
  color: #0b1227;
  background: linear-gradient(140deg, rgb(var(--accent)), rgb(80, 140, 255));
  box-shadow: 0 8px 24px rgba(42,107,255,0.35);
  border: 1px solid rgba(255,255,255,0.14);
}

.btn.cta:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(42,107,255,0.45);
  color: #0b1227;
}

.btn.ghost{
  background: rgba(255,255,255,0.06);
  color: #f4f7ff;
  border: 1px solid rgba(255,255,255,0.5);
}

.btn.ghost:hover{
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.75);
}

.user-menu{
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-menu__trigger{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.user-menu__avatar{
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.2), 0 6px 16px rgba(0,0,0,0.18);
}

.user-menu__label{
  color: rgba(255,255,255,0.92);
}

.user-menu__dropdown{
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 200px;
  background: #0b1222;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.32);
  padding: 10px 12px;
  z-index: 1400;
}

.user-menu__item{
  display: block;
  width: 100%;
  text-align: left;
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 8px;
}

.user-menu__item:last-child{
  margin-bottom: 0;
}

.user-menu__item:hover{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

.user-menu__item--logout{
  background: rgba(220,53,69,0.1);
  border-color: rgba(220,53,69,0.4);
  color: #ffe6e9;
}

.user-menu__item--logout:hover{
  background: rgba(220,53,69,0.2);
}

@media (max-width: 860px){
  .site-header .wrap{
    flex-wrap: wrap;
    gap: 12px;
  }

  .main-nav{
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .header-actions{
    margin-left: 0;
  }
}
