
.popup-overlay{
position:fixed;
inset:0;
background:rgba(0,0,0,0.65);
backdrop-filter: blur(6px);
display:none;
justify-content:center;
align-items:center;
z-index:9999;
}

.popup-box{
width:320px;
min-height:240px;
padding:30px 20px;
border-radius:22px;
background:linear-gradient(145deg,#0f172a,#111827);
text-align:center;
box-shadow:0 0 40px rgba(250,204,21,0.25);
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
animation:popupScale 0.25s ease;
position:relative;
overflow:hidden;
}

/* Glowing Border Effect */
.popup-box::before{
content:"";
position:absolute;
inset:0;
border-radius:22px;
padding:2px;
background:linear-gradient(45deg,#facc15,#f59e0b,#facc15);
-webkit-mask:
linear-gradient(#000 0 0) content-box,
linear-gradient(#000 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
opacity:0.5;
}

/* Title */
.popup-box h3{
font-size:22px;
font-weight:700;
color:#facc15;
margin-bottom:15px;
letter-spacing:1px;
}

/* Message */
.popup-message{
font-size:26px;
font-weight:600;
color:white;
margin-top:10px;
}

/* When showing 10-1 seconds */
.popup-message:contains("Seconds"){
font-size:42px;
color:#facc15;
font-weight:800;
}

/* Success / Error styles same rakho */
.popup-success{
border:2px solid #22c55e;
box-shadow:0 0 25px rgba(34,197,94,0.6);
}

.popup-error{
border:2px solid #ef4444;
box-shadow:0 0 25px rgba(239,68,68,0.6);
}

@keyframes popupScale{
from{transform:scale(0.85);opacity:0}
to{transform:scale(1);opacity:1}
}

.pagination-box{
display:flex;
justify-content:center;
align-items:center;
gap:10px;
margin-top:10px;
}

.page-btn{
background:#1f2937;
border:none;
color:white;
padding:5px 10px;
border-radius:6px;
}

.page-btn:hover{
background:#374151;
}

.result-up{color:#22c55e;}
.result-down{color:#ef4444;}



.time-tabs{
display:flex;
width:100%;
background:#1f2937;
border-radius:10px;
overflow:hidden;
}

.time-tab{
flex:1;
text-align:center;
padding:10px 0;
font-weight:600;
color:#9ca3af;
text-decoration:none;
font-size:14px;
white-space:nowrap;
}

.time-tab.active{
background:#facc15;
color:#000;
}
.time-container{

display:flex;
align-items:center;
gap:10px;

}

.time-current{

background:#1f2937;
color:white;
padding:8px 14px;
border-radius:8px;
cursor:pointer;
font-weight:600;

}

.time-options{

display:flex;
gap:10px;

max-width:0;
overflow:hidden;

transition:0.4s;

}

.time-options.show{

max-width:300px;

}

.time-circle{

width:35px;
height:35px;

border:2px solid #facc15;

border-radius:50%;

display:flex;
align-items:center;
justify-content:center;

color:#facc15;

text-decoration:none;

font-weight:bold;

transition:0.3s;

}

.time-circle:hover{

background:#facc15;
color:black;

}

.time-circle.active{

background:#facc15;
color:black;

}


.trade-item{
background:#111827;
border-radius:12px;
margin-bottom:12px;
padding:10px;
color:white;
}

.trade-header{
display:flex;
justify-content:space-between;
align-items:center;
cursor:pointer;
}

.left{
display:flex;
gap:10px;
align-items:center;
}

.badge{
padding:5px 10px;
border-radius:8px;
font-size:12px;
font-weight:600;
}

.badge.up{
background:#16a34a;
}

.badge.down{
background:#ef4444;
}

.period{
font-size:13px;
}

.arrow{
font-size:14px;
color:#9ca3af;
}

.trade-details{
display:none;
margin-top:10px;
background:#1f2937;
border-radius:10px;
padding:10px;
}

.trade-details .row{
display:grid;
grid-template-columns:120px 1fr;
margin-bottom:6px;
font-size:13px;
align-items:center;
}

.trade-details .row span:last-child{
text-align:right;
font-weight:600;
}

.trade-details{
display:none;
}

.trade-details.show{
display:block;
}

.arrow{
font-size:14px;
color:#9ca3af;
transition:0.3s;
}

.trade-item.open .arrow{
transform:rotate(180deg);
}
