/* ===== Modal Wrapper ===== */
.dcp-modal {
display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
    max-width: 700px;
    margin: auto;
    padding: 10px;
    border-radius: 8px;
    height: auto;
    max-height: max-content;
    box-shadow: 0 34px 81px rgba(0, 0, 0, .35);
}

/* overlay */
.dcp-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.6);
}

/* box */
.dcp-modal-box {
    position: relative;
    max-width: 700px;
    margin: 5% auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    z-index: 2;
}

/* close */
.dcp-modal-close {
    position: absolute;
    top: 0px;
    left: 4px;
    border: none;
    background: none;
    font-size: 22px;
    cursor: pointer;
}

/* content */
.dcp-modal-content {
    margin-top: 15px;
}



.dcp-chart-wrapper {
    height: 320px;
    position: relative;
}

.dcp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: none;
    z-index: 9999;
}









.dcp-chart-tabs { display:flex; gap:8px; margin-bottom:10px }
.dcp-chart-tab { padding:6px 12px; cursor:pointer }
.dcp-chart-tab.active { background:#333;color:#fff }




/* کل مودال */
#price-chart-modal.dcp-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
}

/* بک‌دراپ تیره */
#price-chart-modal .dcp-modal-overlay {
    position: fixed;          /* ✅ خیلی مهم */
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

/* باکس مودال */
#price-chart-modal .dcp-modal-box {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 16px;
    max-width: 900px;
    margin: 0vh  auto;
    padding: 16px;
}
#price-chart-modal .dcp-modal-box {
    position: relative;
    z-index: 2;

    width: auto;          /* ✅ مهم */
    height: auto;         /* ✅ مهم */

    max-width: 900px;
    margin: 0vh auto;

    background: #fff;
    border-radius: 16px;
}

