.lookup-section{
padding:40px 8% 120px;
}

.lookup-shell{
max-width:1200px;
margin:0 auto;
}

.lookup-panel{
position:relative;
overflow:hidden;
padding:30px;
border-radius:28px;
background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
border:1px solid rgba(255,255,255,.08);
backdrop-filter:blur(20px);
box-shadow:0 20px 60px rgba(0,0,0,.18);
}

.lookup-panel::before{
content:"";
position:absolute;
inset:-2px;
background:radial-gradient(circle at top right, rgba(0,217,255,.18), transparent 35%),
radial-gradient(circle at bottom left, rgba(0,122,158,.16), transparent 35%);
pointer-events:none;
}

.lookup-panel > *{
position:relative;
z-index:1;
}

.lookup-title{
display:flex;
flex-wrap:wrap;
align-items:flex-end;
justify-content:space-between;
gap:16px;
margin-bottom:22px;
}

.lookup-title h2{
font-size:clamp(28px, 4vw, 42px);
margin:0;
line-height:1.15;
}

.lookup-title p{
max-width:720px;
margin:0;
opacity:.78;
line-height:1.9;
font-size:15px;
}

.lookup-form{
display:grid;
grid-template-columns:1fr auto;
gap:14px;
align-items:end;
margin-top:24px;
}

.lookup-field{
display:flex;
flex-direction:column;
gap:10px;
}

.lookup-label{
font-size:14px;
font-weight:700;
opacity:.85;
}

.lookup-input-row{
display:flex;
gap:10px;
align-items:center;
flex-wrap:wrap;
}

.lookup-input{
flex:1 1 320px;
min-width:0;
padding:16px 18px;
border-radius:18px;
border:1px solid rgba(255,255,255,.12);
background:rgba(5,10,18,.55);
color:inherit;
font-size:16px;
direction:ltr;
unicode-bidi:plaintext;
text-align:left;
outline:none;
transition:border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.lookup-input::placeholder{
opacity:.55;
}

.lookup-input:focus{
border-color:var(--accent);
box-shadow:0 0 0 4px rgba(0,217,255,.16);
transform:translateY(-1px);
}

.lookup-btn{
padding:15px 24px;
border:none;
border-radius:18px;
font-size:15px;
font-weight:800;
color:#061018;
background:linear-gradient(135deg, #00D9FF, #7df0ff);
cursor:pointer;
transition:transform .25s ease, box-shadow .25s ease, opacity .25s ease;
white-space:nowrap;
}

.lookup-btn:hover{
transform:translateY(-2px);
box-shadow:0 14px 30px rgba(0,217,255,.24);
}

.lookup-btn:disabled{
cursor:progress;
opacity:.7;
transform:none;
box-shadow:none;
}

.lookup-status{
margin-top:18px;
min-height:28px;
font-size:14px;
line-height:1.8;
opacity:.9;
}

.lookup-status.success{
color:#27d38b;
}

.lookup-status.error{
color:#ff7d7d;
}

.lookup-meta{
display:flex;
flex-wrap:wrap;
gap:10px;
margin-top:14px;
}

.lookup-badge{
display:inline-flex;
align-items:center;
gap:8px;
padding:8px 12px;
border-radius:999px;
font-size:12px;
font-weight:700;
background:rgba(0,217,255,.12);
border:1px solid rgba(0,217,255,.25);
color:var(--accent);
}

.lookup-results{
margin-top:28px;
display:grid;
grid-template-columns:repeat(3, 1fr);
gap:18px;
}

.lookup-card{
padding:22px 20px;
border-radius:22px;
background:rgba(255,255,255,.04);
border:1px solid rgba(255,255,255,.08);
backdrop-filter:blur(14px);
transition:transform .25s ease, border-color .25s ease, box-shadow .25s ease;
min-height:118px;
}

.lookup-card:hover{
transform:translateY(-4px);
border-color:rgba(0,217,255,.35);
box-shadow:0 14px 32px rgba(0,217,255,.10);
}

.lookup-card .card-label{
display:block;
font-size:13px;
opacity:.65;
margin-bottom:10px;
}

.lookup-card .card-value{
font-size:17px;
font-weight:700;
line-height:1.6;
direction:ltr;
unicode-bidi:plaintext;
text-align:left;
word-break:break-word;
}

.lookup-card .card-value.rtl{
direction:rtl;
text-align:right;
}

.lookup-card .card-note{
margin-top:10px;
font-size:13px;
opacity:.72;
line-height:1.7;
}

.lookup-stack{
display:flex;
flex-direction:column;
gap:8px;
}

.lookup-empty{
padding:24px;
text-align:center;
opacity:.72;
border:1px dashed rgba(255,255,255,.16);
border-radius:20px;
grid-column:1 / -1;
}

.lookup-actions{
display:flex;
gap:10px;
flex-wrap:wrap;
justify-content:flex-start;
align-items:center;
margin-top:14px;
}

.lookup-link{
display:inline-flex;
align-items:center;
justify-content:center;
padding:11px 16px;
border-radius:14px;
border:1px solid rgba(255,255,255,.12);
background:rgba(255,255,255,.04);
font-size:13px;
font-weight:700;
transition:.25s ease;
}

.lookup-link:hover{
border-color:var(--accent);
color:var(--accent);
}

.lookup-link.is-disabled{
opacity:.45;
cursor:not-allowed;
pointer-events:none;
}

/* --- Toast notification (used for the 5s rate-limit message) --- */
.lookup-toast{
position:fixed;
left:50%;
bottom:28px;
z-index:9999;
display:flex;
align-items:center;
gap:10px;
max-width:min(420px, 90vw);
padding:14px 18px;
border-radius:16px;
background:rgba(10,16,26,.92);
border:1px solid rgba(255,153,51,.35);
box-shadow:0 16px 40px rgba(0,0,0,.35);
backdrop-filter:blur(16px);
color:#fff;
font-size:14px;
line-height:1.8;
transform:translate(-50%, 16px) scale(.96);
opacity:0;
pointer-events:none;
transition:transform .3s cubic-bezier(.22,1,.36,1), opacity .3s ease;
}

.lookup-toast.show{
transform:translate(-50%, 0) scale(1);
opacity:1;
}

.lookup-toast .lookup-toast-icon{
flex:none;
width:22px;
height:22px;
border-radius:50%;
background:rgba(255,153,51,.18);
position:relative;
}

.lookup-toast .lookup-toast-icon::before{
content:"";
position:absolute;
inset:0;
margin:auto;
width:2px;
height:7px;
background:#ff9933;
border-radius:2px;
transform:translateY(-2px);
}

.lookup-toast .lookup-toast-icon::after{
content:"";
position:absolute;
left:50%;
top:50%;
width:2px;
height:2px;
background:#ff9933;
border-radius:50%;
transform:translate(-50%, 3px);
}

.lookup-toast.warning{
border-color:rgba(255,153,51,.45);
}

.lookup-toast.success .lookup-toast-icon{
background:rgba(39,211,139,.18);
}

.lookup-toast.success .lookup-toast-icon::before,
.lookup-toast.success .lookup-toast-icon::after{
background:#27d38b;
}

.lookup-toast.error{
border-color:rgba(255,125,125,.45);
}

.lookup-toast.error .lookup-toast-icon{
background:rgba(255,125,125,.18);
}

.lookup-toast.error .lookup-toast-icon::before,
.lookup-toast.error .lookup-toast-icon::after{
background:#ff7d7d;
}

html[data-theme="light"] .lookup-toast{
background:rgba(255,255,255,.94);
color:#0B1524;
border-color:rgba(255,153,51,.4);
box-shadow:0 16px 40px rgba(11,21,36,.16);
}

@media(max-width:700px){
.lookup-toast{
bottom:18px;
padding:12px 16px;
font-size:13px;
}
}

html[data-theme="light"] .lookup-panel{
background:linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.60));
border-color:rgba(11,21,36,.10);
box-shadow:0 20px 60px rgba(0,122,158,.10);
}

html[data-theme="light"] .lookup-panel::before{
background:radial-gradient(circle at top right, rgba(0,122,158,.16), transparent 35%),
radial-gradient(circle at bottom left, rgba(0,122,158,.10), transparent 35%);
}

html[data-theme="light"] .lookup-input{
background:rgba(255,255,255,.86);
border-color:rgba(11,21,36,.12);
color:#0B1524;
}

html[data-theme="light"] .lookup-card{
background:rgba(255,255,255,.72);
border-color:rgba(11,21,36,.10);
}

html[data-theme="light"] .lookup-empty{
border-color:rgba(11,21,36,.12);
}

html[data-theme="light"] .lookup-link{
background:rgba(11,21,36,.04);
border-color:rgba(11,21,36,.12);
}

html[data-theme="light"] .lookup-link:hover{
background:rgba(0,122,158,.10);
}

@media(max-width:900px){
.lookup-results{
grid-template-columns:1fr 1fr;
}
}

@media(max-width:700px){
.lookup-section{
padding:28px 5% 100px;
}

.lookup-panel{
padding:22px;
border-radius:24px;
}

.lookup-form{
grid-template-columns:1fr;
}

.lookup-btn{
width:100%;
}

.lookup-results{
grid-template-columns:1fr;
}

.lookup-card{
min-height:auto;
}
}
