.top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:14px
}

.top-right{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.op-nav-card{
  padding:10px 14px;
}

.op-nav-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}

.op-nav-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:138px;
  height:54px;
  padding:0 14px;
  border-radius:14px;
  overflow:hidden;
  text-decoration:none;
  border:1px solid rgba(88,128,255,.58);
  background-color:#0d1f53;
  background-position:center;
  background-repeat:no-repeat;
  background-size:cover;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 6px 16px rgba(0,0,0,.26);
  transition:
    transform .15s ease,
    box-shadow .15s ease,
    border-color .15s ease,
    filter .15s ease;
}

.op-nav-btn::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(7,15,42,.22) 0%, rgba(6,12,34,.56) 100%),
    radial-gradient(circle at 50% 12%, rgba(255,255,255,.10), transparent 34%);
  pointer-events:none;
}

.op-nav-btn:hover{
  transform:translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 10px 20px rgba(0,0,0,.30);
  text-decoration:none;
}

.op-nav-btn.active{
  border-color:rgba(132,176,255,.95);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 0 0 2px rgba(82,136,255,.20),
    0 10px 22px rgba(33,86,255,.28);
  filter:brightness(1.08);
}

.op-nav-btn.disabled{
  opacity:.58;
  cursor:default;
  pointer-events:none;
  filter:grayscale(.18);
}

.op-nav-label{
  position:relative;
  z-index:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-size:17px;
  font-weight:900;
  line-height:1;
  color:#fff;
  text-shadow:
    0 2px 3px rgba(0,0,0,.90),
    0 0 10px rgba(0,0,0,.45);
  white-space:nowrap;
}

.op-nav-btn-planet{
  background:
    url('/static/assets/ui/nav_planet.png') center center / cover no-repeat,
    #0d1f53;
}

.op-nav-btn-system{
  background:
    url('/static/assets/ui/nav_system.png') center center / cover no-repeat,
    #0d1f53;
}

.op-nav-btn-galaxy{
  background:
    url('/static/assets/ui/nav_galaxy.png') center center / cover no-repeat,
    #0d1f53;
}

.op-nav-btn-shipyard{
  background:
    url('/static/assets/ui/nav_shipyard.png') center center / cover no-repeat,
    #0d1f53;
}

.op-nav-btn-shipyard.active{
  background:
    url('/static/assets/ui/nav_shipyard.png') center center / cover no-repeat,
    #0d1f53;
}

.lang-select-form{
  margin:0;
}

.lang-select-wrap{
  position:relative;
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(44,61,119,.9);
  background:rgba(16,28,70,.82);
  min-width:120px;
}

.lang-flag{
  width:18px;
  height:18px;
  object-fit:cover;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.15);
  display:block;
  background:#0b1230;
  flex:0 0 auto;
}

.lang-select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  width:100%;
  background:transparent;
  border:0;
  color:var(--text);
  font-size:12px;
  font-weight:800;
  padding:0 18px 0 0;
  cursor:pointer;
  outline:none;
}

.lang-caret{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  pointer-events:none;
  color:var(--muted);
  font-size:11px;
}

@media (max-width: 700px){
  .top-right{
    width:100%;
    justify-content:flex-start;
  }

  .op-nav-row{
    gap:10px;
  }

  .op-nav-btn{
    min-width:126px;
    height:50px;
    padding:0 10px;
  }

  .op-nav-label{
    font-size:15px;
  }
}

@media (max-width: 640px){
  .top{
    align-items:flex-start;
    flex-direction:column;
  }
}