:root{
  --bg:#0b0b0f;
  --card:#111118;
  --text:#eaeaf2;
  --muted:#b8b8c7;
  --stroke:#1f1f2a;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Noto Sans", Arial, sans-serif;
  background: radial-gradient(1200px 500px at 50% -10%, #1b1b2a 0%, var(--bg) 60%);
  color: var(--text);
}

.wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 16px 34px;
}

.top h1{
  margin:0 0 6px;
  font-size: 26px;
  letter-spacing: .2px;
}
.top p{
  margin:0 0 22px;
  color: var(--muted);
}

.selector{
  background: rgba(17,17,24,.8);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.selector label{
  font-weight: 600;
  font-size: 15px;
}

.comboInput{
  position:relative;
  display:flex;
  align-items:center;
  border-radius: 12px;
  border: 1px solid #2a2a3a;
  background: linear-gradient(135deg, #111118 0%, #161626 100%);
}

.comboInput input{
  flex:1;
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  outline: none;
}

.comboInput input:disabled{
  opacity: .6;
  cursor: not-allowed;
}

.comboToggle{
  width: 44px;
  height: 100%;
  background: transparent;
  border: none;
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--muted);
  cursor:pointer;
  border-left: 1px solid rgba(255,255,255,.05);
}

.comboToggle:disabled{
  cursor: not-allowed;
  opacity: .5;
}

.comboToggle::before{
  content:"";
  border-left:6px solid transparent;
  border-right:6px solid transparent;
  border-top:8px solid currentColor;
  transition: transform .2s ease;
}

.comboInput.open .comboToggle::before{
  transform: rotate(180deg);
}

.comboList{
  position:absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: rgba(12,12,20,.96);
  border: 1px solid #2a2a3a;
  border-radius: 12px;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 18px 30px rgba(0,0,0,.4);
  display:none;
  z-index: 30;
}

.comboInput.open .comboList{
  display:block;
}

.comboOption{
  width: 100%;
  padding: 10px 16px;
  text-align:left;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.04);
  color: var(--text);
  font-family: inherit;
  cursor:pointer;
  display:flex;
  flex-direction: column;
  gap: 4px;
}

.comboOption strong{
  font-size: 15px;
  letter-spacing: .4px;
}

.comboOption small{
  color: var(--muted);
  font-size: 13px;
}

.comboOption:hover,
.comboOption.isActive{
  background: rgba(255,255,255,.06);
}

.comboOption:last-child{
  border-bottom: none;
}

.comboEmpty{
  padding: 12px 16px;
  color: var(--muted);
  font-size: 14px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.card{
  background: rgba(17,17,24,.92);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
}

.card h2{
  margin: 0 0 10px;
  font-size: 24px;
  text-align:center;
}

.row{
  display:flex;
  gap: 6px;
  align-items:center;
  margin-bottom: 10px;
  margin-right: 20px;
}

.row label{
  min-width: 60px;
  color: var(--muted);
  font-size: 14px;
  text-align:right;
}

.row input{
  width: 100%;
  background: #0f0f16;
  border: 1px solid #232334;
  color: var(--text);
  border-radius: 12px;
  padding: 8px 10px;
  outline: none;
}
.row input:focus{
  border-color: #3a3a5a;
}

.row input[readonly]{
  cursor: not-allowed;
  color: var(--muted);
}

.qrWrap{
  display:flex;
  flex-direction: column;
  align-items:center;
  gap: 10px;
  padding: 8px 0 2px;
}

.qrFrame{
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  /* moldura preta grossa */
  outline: 10px solid #000;
  outline-offset: -2px;
  width: 250px;
  height: 250px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.qrFrame canvas, .qrFrame img{
  width: 210px !important;
  height: 210px !important;
}

.qrLabel{
  width: 250px;
  text-align:center;
  background: #000;
  color:#fff;
  border-radius: 16px;
  padding: 12px 10px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .3px;
}

.actions{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  margin-top: 24px;
  min-height: 88px;

}

button{
  background: #1b1b28;
  color: var(--text);
  border: 1px solid #2a2a3a;
  border-radius: 12px;
  padding: 10px 14px;
  cursor:pointer;
}
button:hover{ border-color:#3a3a55; }
button:active{ transform: translateY(1px); }

.comboToggle,
.comboOption{
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.copyStatus{
  margin:0;
  color: var(--muted);
  font-size: 14px;
  text-align:center;
  min-height: 24px;
  display:flex;
  align-items:center;
  justify-content:center;
  width: 100%;
}

.foot{
  margin-top: 18px;
  color: var(--muted);
  text-align:center;
}
code{ color:#d7d7ff; }
