:root{ --cp-header-h: 72px; }

/* Unified header (match Home navigation across all pages) */
.cp-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(7, 11, 20, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: var(--cp-header-h);
  min-height: var(--cp-header-h);
  max-height: var(--cp-header-h);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.cp-header.is-scrolled{
  background: rgba(7, 11, 20, 0.9);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
body.is-embedded .cp-header,
html.is-embedded .cp-header{
  display:none;
}
.cp-header .cp-wrap{
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display:flex;
  align-items:center;
  gap:12px;
  box-sizing: border-box;
}
.cp-brand{display:flex; align-items:center; gap:8px; text-decoration:none; flex-shrink: 0;}
.cp-brand .cp-logo{
  display:flex; align-items:center;
  flex-shrink: 0;
}
.cp-brand img{height: 32px; width: auto; display:block}
.cp-brand .cp-name{
  display:block;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  letter-spacing: -0.02em;
}
.cp-nav{display:flex; align-items:center; gap:8px; flex-wrap:nowrap; justify-content:flex-start; flex-shrink: 1;}
.cp-nav a{
  color: rgba(234,240,255,.85);
  text-decoration:none;
  font-weight:700;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 10px;
  line-height: 1;
  transition: all .2s ease;
  white-space: nowrap;
}
.cp-nav a:hover{background: rgba(255,255,255,.05)}
.cp-nav a.is-active{
  color: #061021;
  background: linear-gradient(135deg, #7C5CFF, #6CE7FF);
  box-shadow: 0 8px 24px rgba(108,231,255,.18);
}
.cp-right{display:flex; align-items:center; gap:10px; margin-left:auto; flex-shrink: 0;}
.cp-cta{
  border: 1px solid rgba(255,255,255,.18);
  background: transparent;
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  color: rgba(234,240,255,.96);
  text-decoration:none;
  white-space:nowrap;
  line-height: 1;
  transition: all .2s ease;
}
.cp-cta:hover{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.3);
}
.cp-cta.primary{
  border: none;
  color: #061021;
  background: linear-gradient(135deg, #7C5CFF, #6CE7FF);
  box-shadow: 0 4px 12px rgba(108,231,255,.2);
}
.cp-cta.primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(108,231,255,.3);
  background: linear-gradient(135deg, #886aff, #7cebff);
}
@media (max-width: 860px){
  .cp-header{height:auto}
  .cp-header .cp-wrap{
    height:auto;
    flex-wrap:wrap;
    padding: 10px 16px 12px;
  }
  .cp-brand{order:1}
  .cp-nav{
    order:2;
    width:100%;
    display:flex;
    overflow-x:auto;
    padding: 6px 0 4px;
    gap:10px;
  }
  .cp-nav a{
    white-space:nowrap;
  }
  .cp-right{
    order:3;
    width:100%;
    justify-content:flex-start;
    flex-wrap:wrap;
    gap:8px;
  }
  .cp-cta{padding:6px 10px}
}
.cp-lang{position:relative}
.cp-lang .cp-lang-btn{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  padding: 6px 8px;
  border-radius: 12px;
  font-weight: 800;
  color: rgba(234,240,255,.92);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}
.cp-lang .lang{
  position:absolute;
  right:0;
  top: 44px;
  list-style:none;
  margin:0;
  padding:8px;
  width: 180px;
  display:none;
  background: rgba(11,18,32,.96);
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  box-shadow: 0 18px 70px rgba(0,0,0,.55);
}
.cp-lang:hover .lang{display:block}
.cp-lang.open .lang{display:block}
.cp-lang .lang a{
  display:block;
  padding:8px 10px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  color: rgba(234,240,255,.92);
  text-decoration:none;
  cursor:pointer;
}
.cp-lang .lang a:hover{background: rgba(255,255,255,.06)}
