/* Modern TTB design */
.ttb-ue-wrap{
  max-width: 920px;
  margin: 24px auto;
  padding: 0 12px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.ttb-ue-title{
  font-size: 1.5rem;
  margin: 0 0 10px;
}

.ttb-ue-card{
  background: #0f1220;
  color: #e8eaf6;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  padding: 16px;
  margin-bottom: 16px;
}

.ttb-ue-inputs{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.ttb-ue-inputs input{
  width: 100%;
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  background: #0a0d1a;
  color: #e8eaf6;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ttb-ue-inputs input:focus{
  border-color: #6ee7b7;
  box-shadow: 0 0 0 3px rgba(110,231,183,0.15);
}

.ttb-ue-inputs button{
  padding: 12px 18px;
  font-size: 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #34d399, #10b981);
  color: #03120b;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(16,185,129,0.35);
  transition: transform .05s ease, filter .2s ease;
}
.ttb-ue-inputs button:active{ transform: translateY(1px); }
.ttb-ue-inputs button:hover{ filter: brightness(1.05); }

.ttb-ue-note{
  margin: 10px 0 0;
  font-size: 13px;
  color: #aab0d6;
}

.ttb-ue-final{
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.ttb-ue-final-label{
  font-weight: 700;
  color: #9ee6c5;
}
.ttb-ue-final a{
  color: #86efac;
  word-break: break-all;
  text-decoration: none;
  border-bottom: 1px dotted rgba(134,239,172,0.5);
}olor: #9ee6c5;
}
.ttb-ue-final a:hover{
  color: #fff;
}
.ttb-ue-copy-btn{
  padding: 8px 12px;
  border-radius: 10px;
  background: #1f2937;
  color: #e5e7eb;
  border: 1px solid rgba(255,255,255,0.08);
}
.ttb-ue-copy-btn:hover{ background:#263445; }

.ttb-ue-table-wrap{
  overflow:auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}
.ttb-ue-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.ttb-ue-table thead th{
  text-align: left;
  background: rgba(255,255,255,0.05);
  color: #c7d2fe;
  padding: 10px;
  position: sticky; top: 0;
}
.ttb-ue-table tbody td{
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.ttb-ue-table tbody tr:hover{
  background: rgba(52,211,153,0.06);
}

.ttb-ue-error{
  border-color: rgba(248,113,113,0.4);
  background: #2a0f12;
  color: #fecaca;
}

/* Matrix loading overlay */
#ttb-ue-loading{
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 999999;
  display: grid;
  place-items: center;
}
#ttb-ue-loading[hidden]{ display: none; }

#ttb-ue-matrix{
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
}

.ttb-ue-loading-text{
  position: relative;
  z-index: 1;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #00ff66;
  color: #00ff99;
  background: rgba(0,0,0,0.4);
  text-transform: lowercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(0,255,102,0.25), inset 0 0 8px rgba(0,255,102,0.15);
}

@media (max-width: 600px){
  .ttb-ue-final{
    grid-template-columns: 1fr;
  }
  .ttb-ue-inputs{
    grid-template-columns: 1fr;
  }
}
