.ua-header{
  position:sticky;
  top:0;
  left:0;
  right:0;
  z-index:5000;
  background:rgba(12,14,18,.92);
  border-bottom:1px solid rgba(255,255,255,.09);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  color:#fff;
}

.ua-header-wrap{
  width:min(1180px,calc(100% - 32px));
  min-height:72px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:18px;
}

.ua-logo{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  color:#fff;
  text-decoration:none;
  flex:0 0 auto;
}

.ua-logo-mark{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:13px;
  color:#21170c;
  background:linear-gradient(135deg,#f0a526,#ffd16b);
  box-shadow:0 10px 24px rgba(240,165,38,.18);
  font-size:23px;
  font-weight:900;
}

.ua-logo-text{
  font-size:22px;
  line-height:1;
  font-weight:900;
  letter-spacing:-.055em;
  white-space:nowrap;
}

.ua-logo-text span{
  color:#f0a526;
}

.ua-search{
  height:42px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:4px 5px 4px 15px;
  border-radius:999px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.11);
}

.ua-search input{
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:#fff;
  font-size:14px;
}

.ua-search input::placeholder{
  color:rgba(255,255,255,.52);
}

.ua-search button{
  width:34px;
  height:34px;
  flex:0 0 auto;
  border:0;
  border-radius:999px;
  background:#f0a526;
  color:#1d160d;
  font-size:20px;
  line-height:1;
  font-weight:900;
  cursor:pointer;
}

.ua-search-desktop{
  flex:1 1 auto;
  max-width:390px;
  margin-left:auto;
}

.ua-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}

.ua-account,
.ua-lang-btn,
.ua-menu-toggle{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  color:#fff;
  text-decoration:none;
  font-size:14px;
  font-weight:850;
  white-space:nowrap;
}

.ua-account{
  gap:8px;
  padding:0 12px;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.10);
}

.ua-account:hover,
.ua-lang-btn:hover,
.ua-menu-toggle:hover{
  background:rgba(255,255,255,.095);
}

.ua-account-icon{
  width:25px;
  height:25px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:#f0a526;
  font-size:15px;
  line-height:1;
}

.ua-lang{
  position:relative;
  z-index:3;
}

.ua-lang-btn{
  gap:8px;
  padding:0 10px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.055);
  cursor:pointer;
}

.ua-flag{
  width:25px;
  height:25px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#fff;
  font-size:15px;
}

.ua-lang-btn small{
  color:rgba(255,255,255,.58);
  font-size:13px;
  transition:transform .18s ease;
}

.ua-lang.is-open .ua-lang-btn small{
  transform:rotate(180deg);
}

.ua-lang-menu{
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  width:122px;
  display:grid;
  gap:4px;
  padding:7px;
  border-radius:15px;
  background:#11161a;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 18px 44px rgba(0,0,0,.36);
  opacity:0;
  visibility:hidden;
  transform:translateY(-5px);
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.ua-lang.is-open .ua-lang-menu{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
  pointer-events:auto;
}

.ua-lang-menu a,
.ua-panel-langs a{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  border-radius:10px;
  color:rgba(255,255,255,.72);
  text-decoration:none;
  font-size:13px;
  font-weight:900;
}

.ua-lang-menu a:hover,
.ua-lang-menu a.is-active,
.ua-panel-langs a:hover,
.ua-panel-langs a.is-active{
  color:#1d160d;
  background:#f0a526;
}

.ua-menu-toggle{
  gap:10px;
  padding:0 14px;
  border:1px solid rgba(240,165,38,.28);
  background:rgba(240,165,38,.11);
  cursor:pointer;
}

.ua-menu-icon{
  width:22px;
  display:grid;
  gap:4px;
}

.ua-menu-icon i{
  display:block;
  height:2px;
  border-radius:999px;
  background:#fff;
  transition:transform .2s ease, opacity .2s ease;
}

.ua-header.is-open .ua-menu-icon i:nth-child(1){
  transform:translateY(6px) rotate(45deg);
}

.ua-header.is-open .ua-menu-icon i:nth-child(2){
  opacity:0;
}

.ua-header.is-open .ua-menu-icon i:nth-child(3){
  transform:translateY(-6px) rotate(-45deg);
}

.ua-panel{
  position:absolute;
  left:50%;
  top:calc(100% + 10px);
  width:min(1120px,calc(100% - 32px));
  max-height:calc(100vh - 94px);
  overflow:auto;
  border-radius:24px;
  background:
    radial-gradient(circle at 78% 0%,rgba(240,165,38,.16),transparent 32%),
    linear-gradient(180deg,rgba(20,23,29,.985),rgba(10,12,15,.985));
  border:1px solid rgba(255,255,255,.11);
  box-shadow:0 28px 80px rgba(0,0,0,.44);
  opacity:0;
  visibility:hidden;
  transform:translateX(-50%) translateY(-8px);
  pointer-events:none;
  transition:opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.ua-header.is-open .ua-panel{
  opacity:1;
  visibility:visible;
  transform:translateX(-50%) translateY(0);
  pointer-events:auto;
}

.ua-panel-inner{
  padding:24px;
}

.ua-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.ua-search-mobile{
  display:none;
  flex:1;
}

.ua-panel-langs{
  display:flex;
  gap:5px;
  padding:4px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}

.ua-panel-langs a{
  min-width:42px;
}

.ua-panel-grid{
  display:grid;
  grid-template-columns:1.12fr .88fr;
  gap:18px;
}

.ua-panel-main,
.ua-panel-side{
  display:grid;
  gap:10px;
}

.ua-panel-main a,
.ua-panel-side a{
  display:grid;
  grid-template-columns:42px 1fr;
  align-items:center;
  gap:14px;
  min-height:70px;
  padding:12px 14px;
  border-radius:17px;
  color:#fff;
  text-decoration:none;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.075);
  transition:background .18s ease, border-color .18s ease, transform .18s ease;
}

.ua-panel-main a:hover,
.ua-panel-side a:hover{
  background:rgba(255,255,255,.075);
  border-color:rgba(240,165,38,.24);
  transform:translateY(-1px);
}

.ua-panel-main i,
.ua-panel-side i{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:14px;
  color:#f0a526;
  background:rgba(240,165,38,.11);
  font-size:22px;
  line-height:1;
  font-style:normal;
}

.ua-panel-main span,
.ua-panel-side span{
  min-width:0;
}

.ua-panel-main strong,
.ua-panel-side strong{
  display:block;
  margin-bottom:4px;
  font-size:17px;
  line-height:1.12;
  font-weight:850;
  letter-spacing:-.015em;
}

.ua-panel-main small,
.ua-panel-side small{
  display:block;
  color:rgba(255,255,255,.53);
  font-size:13px;
  line-height:1.25;
  font-weight:500;
}

.ua-panel-cta{
  display:grid;
  grid-template-columns:48px 1fr auto;
  align-items:center;
  gap:16px;
  margin-top:18px;
  padding:17px;
  border-radius:20px;
  background:rgba(240,165,38,.10);
  border:1px solid rgba(240,165,38,.20);
}

.ua-panel-cta>i{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:16px;
  color:#1d160d;
  background:#f0a526;
  font-size:26px;
  font-style:normal;
}

.ua-panel-cta strong{
  display:block;
  margin-bottom:4px;
  font-size:18px;
  font-weight:900;
}

.ua-panel-cta p{
  margin:0;
  color:rgba(255,255,255,.58);
  font-size:14px;
  line-height:1.35;
}

.ua-panel-cta a{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 17px;
  border-radius:999px;
  color:#1d160d;
  background:#f0a526;
  text-decoration:none;
  font-size:14px;
  font-weight:900;
}

.ua-main{
  min-height:100vh;
}

.ua-menu-lock{
  overflow:hidden;
}

@media(max-width:1060px){
  .ua-header-wrap{
    gap:12px;
  }

  .ua-search-desktop{
    max-width:310px;
  }

  .ua-account span:last-child,
  .ua-menu-label{
    display:none;
  }

  .ua-account{
    width:42px;
    padding:0;
  }

  .ua-menu-toggle{
    width:44px;
    padding:0;
  }
}

@media(max-width:820px){
  .ua-header-wrap{
    width:100%;
    min-height:64px;
    padding:0 14px;
  }

  .ua-logo-mark{
    width:32px;
    height:32px;
    border-radius:11px;
    font-size:20px;
  }

  .ua-logo-text{
    font-size:19px;
  }

  .ua-search-desktop,
  .ua-account,
  .ua-lang{
    display:none;
  }

  .ua-actions{
    margin-left:auto;
  }

  .ua-panel{
    position:fixed;
    left:0;
    right:0;
    top:64px;
    width:100%;
    max-height:calc(100dvh - 64px);
    border-left:0;
    border-right:0;
    border-radius:0 0 22px 22px;
    transform:translateY(-8px);
  }

  .ua-header.is-open .ua-panel{
    transform:translateY(0);
  }

  .ua-panel-inner{
    padding:16px 16px 18px;
  }

  .ua-panel-head{
    display:grid;
    gap:12px;
    margin-bottom:14px;
  }

  .ua-search-mobile{
    display:flex;
  }

  .ua-panel-langs{
    justify-content:center;
  }

  .ua-panel-grid{
    grid-template-columns:1fr;
    gap:10px;
  }

  .ua-panel-main,
  .ua-panel-side{
    gap:8px;
  }

  .ua-panel-main a,
  .ua-panel-side a{
    min-height:62px;
    grid-template-columns:38px 1fr;
    gap:12px;
    padding:10px 12px;
    border-radius:15px;
  }

  .ua-panel-main i,
  .ua-panel-side i{
    width:38px;
    height:38px;
    border-radius:13px;
    font-size:20px;
  }

  .ua-panel-main strong,
  .ua-panel-side strong{
    font-size:16px;
  }

  .ua-panel-main small,
  .ua-panel-side small{
    font-size:12px;
  }

  .ua-panel-cta{
    grid-template-columns:44px 1fr;
    gap:12px;
    margin-top:12px;
    padding:14px;
  }

  .ua-panel-cta>i{
    width:44px;
    height:44px;
    border-radius:14px;
    font-size:24px;
  }

  .ua-panel-cta a{
    grid-column:1 / -1;
  }
}

@media(max-width:420px){
  .ua-logo-text{
    font-size:17px;
  }

  .ua-panel-cta p{
    font-size:13px;
  }
}

/* Patch from last good header: only requested refinements */
.ua-logo-mark svg,
.ua-account-icon svg,
.ua-search button svg,
.ua-lang-btn small svg,
.ua-panel-main i svg,
.ua-panel-side i svg{
  width:1em;
  height:1em;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.ua-logo-mark svg{
  width:22px;
  height:22px;
  stroke-width:2.25;
}

.ua-search button{
  display:grid;
  place-items:center;
  font-size:18px;
}

.ua-search button svg{
  width:18px;
  height:18px;
  stroke-width:2.4;
}

.ua-account-icon svg{
  width:17px;
  height:17px;
}

.ua-lang-btn small{
  width:15px;
  height:15px;
  display:grid;
  place-items:center;
}

.ua-lang-btn small svg{
  width:15px;
  height:15px;
}

.ua-flag{
  overflow:hidden;
  background:transparent;
}

.ua-flag img,
.ua-lang-menu a img,
.ua-panel-langs a img{
  display:block;
  width:25px;
  height:25px;
  border-radius:999px;
  object-fit:cover;
  box-shadow:0 0 0 1px rgba(255,255,255,.32);
}

.ua-lang-menu a{
  justify-content:flex-start;
  gap:9px;
  padding:0 9px;
}

.ua-lang-menu a span,
.ua-panel-langs a span{
  display:block;
}

.ua-panel-langs a{
  gap:7px;
  padding:0 9px;
}

.ua-panel-head,
.ua-panel-langs{
  display:none;
}

.ua-search-mobile{
  width:100%;
  box-sizing:border-box;
}

.ua-panel-main i,
.ua-panel-side i{
  font-size:21px;
}

.ua-panel-main i svg,
.ua-panel-side i svg{
  width:23px;
  height:23px;
}

.ua-panel-cta{
  position:relative;
  grid-template-columns:1fr auto 128px;
  overflow:hidden;
  min-height:118px;
  padding:18px 18px 18px 20px;
  background:
    radial-gradient(circle at 91% 30%,rgba(240,165,38,.18),transparent 34%),
    rgba(240,165,38,.10);
}

.ua-panel-cta-copy{
  min-width:0;
  position:relative;
  z-index:1;
}

.ua-panel-cta-illustration{
  width:132px;
  max-width:100%;
  justify-self:end;
  align-self:center;
  position:relative;
  z-index:0;
  filter:drop-shadow(0 14px 22px rgba(0,0,0,.26));
}

.ua-panel-cta a{
  position:relative;
  z-index:1;
}

@media(max-width:820px){
  .ua-panel-head{
    display:grid;
    width:100%;
  }

  .ua-panel-langs{
    display:flex;
    width:100%;
    justify-content:center;
  }

  .ua-search-mobile{
    display:flex;
    flex:1 1 100%;
    width:100%;
    max-width:none;
  }

  .ua-panel-cta{
    grid-template-columns:1fr 86px;
    min-height:126px;
    padding:15px;
  }

  .ua-panel-cta-copy{
    grid-column:1 / 2;
  }

  .ua-panel-cta-illustration{
    grid-column:2 / 3;
    grid-row:1 / 3;
    width:94px;
    align-self:center;
  }

  .ua-panel-cta a{
    grid-column:1 / 2;
    width:max-content;
    margin-top:8px;
    padding:0 15px;
  }
}

@media(max-width:420px){
  .ua-panel-cta{
    grid-template-columns:1fr 72px;
  }

  .ua-panel-cta-illustration{
    width:80px;
    opacity:.92;
  }

  .ua-panel-langs a{
    min-width:0;
    flex:1;
  }
}

/* Menu refinement: mobile account link and safe full-width mobile search */
.ua-panel-account{
  display:none;
}

@media(max-width:820px){
  .ua-panel-head{
    grid-template-columns:1fr;
    align-items:stretch;
  }

  .ua-search-mobile{
    justify-self:stretch;
    width:100%;
    max-width:none;
    margin:0;
    box-sizing:border-box;
  }

  .ua-panel-account{
    min-height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    width:100%;
    box-sizing:border-box;
    border-radius:999px;
    color:#fff;
    text-decoration:none;
    font-size:14px;
    font-weight:850;
    background:rgba(255,255,255,.055);
    border:1px solid rgba(255,255,255,.10);
  }

  .ua-panel-account:hover{
    background:rgba(255,255,255,.095);
  }
}

/* Mobile fine tuning: prevent iOS search zoom + put login and languages next to each other */
@media(max-width:820px){
  .ua-search-mobile input{
    font-size:16px;
  }

  .ua-panel-head{
    grid-template-columns:minmax(0,1fr) auto;
    gap:10px;
    align-items:center;
  }

  .ua-search-mobile{
    grid-column:1 / -1;
  }

  .ua-panel-account{
    grid-column:1 / 2;
    width:100%;
    min-width:0;
    padding:0 12px;
  }

  .ua-panel-langs{
    grid-column:2 / 3;
    width:auto;
    justify-content:flex-end;
    flex:0 0 auto;
  }
}

@media(max-width:420px){
  .ua-panel-account{
    gap:7px;
    padding:0 10px;
    font-size:13px;
  }

  .ua-panel-langs{
    gap:4px;
  }

  .ua-panel-langs a{
    flex:0 0 auto;
    min-width:38px;
    padding:0 7px;
    gap:5px;
  }

  .ua-panel-langs a img{
    width:23px;
    height:23px;
  }
}

@media(max-width:350px){
  .ua-panel-langs a span{
    display:none;
  }

  .ua-panel-langs a{
    min-width:35px;
    padding:0 6px;
  }
}

/* Patch 044: logo image instead of note icon */
.ua-logo-mark--image{
  overflow:hidden;
  background:transparent;
  box-shadow:0 10px 24px rgba(240,165,38,.16);
}
.ua-logo-mark--image img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
