.dareem-calculator{
    gap: 10px;
    display: flex;
    flex-direction: column;
}
.calculator{
    position: relative;
}

.calculator input{

    width: 100%;
    background: #ddd;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;


}
.calculator:after{
    content: "گرم | ";
    font-size: 16px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #4d4c4c;

}

.dareem-tabs{

    display:flex;
    gap:5px;

}

.tab{

    flex:1;
    cursor:pointer;
    border:none;
    padding:12px;
    color:#fff;
    font-size:16px;

}

.buy{

    background:#2e7d32;
    border-radius: 0 10px 0 0;

}
.dareem-calculator[data-type="buy"] .price-value ,.dareem-calculator[data-type='buy'] .result{
    color: #2e7d32;
    font-weight: 600;
}

.sell{

    background:#c62828;
    border-radius: 10px 0 0 0;

}
.dareem-calculator[data-type="sell"] .price-value ,.dareem-calculator[data-type='sell'] .result{
   color: #c62828;
    font-weight: 600;
}

.tab:not(.active){

    opacity:.4;

}

.live-price{

    text-align:center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px;

}

.label{

    font-size:14px;
    color: #4d4c4c;
    font-weight:500;
    margin: 0;

}

.price{

    font-size:14px;
    font-weight:500;
    color: #4d4c4c;


}

.loading{

    opacity:.4;

}
.final-price{
    border-radius: 8px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.15);
    padding: 10px;
    display: flex;
   flex-direction: column;
    background: #ddd;

}
.price-section{
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.result{
    position: relative;
    min-height: 28px;
}

.result.loading{
    color: transparent;
}

.result.loading::after{
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ddd;
    border-top: 2px solid #16a34a;
    border-radius: 50%;
    animation: dc-spin .8s linear infinite;
}

@keyframes dc-spin{
    to{
        transform: rotate(360deg);
    }
}

.trade-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:48px;
    margin-top:20px;
    border-radius:12px;
    color:#fff;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.trade-btn.buy{
    background:#16a34a;
}

.trade-btn.sell{
    background:#dc2626;
}

.trade-btn:hover{
    opacity:.9;
}