﻿@media (min-width:0) {
    .w100 {
        width: 100%;
    }

    /* boxes ......................................................................................................................*/
    .box {
        background: #fff;
        display: flex;
        padding: var(--padding-container);
        margin: var(--padding-container) 0;
        border-radius: 16px;
        box-sizing: border-box;
    }

    .box-a, .box-b {
        text-align: center;
        justify-content: space-around;
        flex-wrap: wrap;
        gap: var(--padding-container) 6px;
    }

    .box-c,
    .box-d {
        flex-direction: column;
        gap: var(--padding-container);
    }

        .box-a .item,
        .box-b .item,
        .box-c .item,
        .box-d .item {
            color: var(--second-color);
            font-variation-settings: "DOTS" 1;
            font-size: 10.5px;
            font-weight: 600;
            display: block;
        }

    .box-a .item,
    .box-b .item {
        width: calc(25% - 6px);
    }

    .box-c .item,
    .box-d .item {
        display: flex;
        align-items: center;
        gap: 15px;
        position: relative;
    }

        .box-c .item:not(:last-child)::before,
        .box-d .item:not(:last-child)::before {
            content: '';
            position: absolute;
            bottom: -7.5px;
            left: 0;
            right: calc(13% + 15px);
            height: 1px;
            background: #F2F3F6;
        }

    .box-b .item.all {
        cursor: pointer;
    }

    .box-a .icon,
    .box-b .icon,
    .box-c .icon {
        border-radius: 12px;
        padding: 10px;
        box-sizing: border-box;
    }

    .box-a .icon {
        padding: 10px;
    }

    .box-a .icon,
    .box-b .icon {
        margin: 0 auto 8px;
        width: 80%;
    }

    .box-c .icon {
        width: 13%;
    }

    .box-a .icon,
    .box-c .icon {
        background: #7ecfc1;
    }

    /* عنوان خرید و فروش طلا — مثل .icon ریسپانسیو و همیشه وسط‌چین */
    .box-c .goldBuyTitle,
    .box-c .goldSellTitle {
        border-radius: 12px;
        padding: 12px 8px;
        box-sizing: border-box;
        font-feature-settings: var(--base-font-feature-settings);
        font-family:'iranSans';
        font-weight: 800;
        font-size: 13px; /* سایز مناسب برای موبایل */
        line-height: 1.4;
        /* مهم‌ترین قسمت: وسط‌چین کردن متن (هم افقی هم عمودی) */
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        /* عرض یکسان و ریسپانسیو */
        width: 29%;
        min-height: 48px; /* حداقل ارتفاع برای وسط بودن خوب */
    }

    /* رنگ‌ها رو جدا نگه داریم */
    .box-c .goldBuyTitle {
        background: #bcf2ba;
    }

    .box-c .goldSellTitle {
        background: #fff3f2;
    }

    .box-b .icon {
        border: .5px solid #DFE1E5;
    }

    .box-b .item.all .icon {
        /* border: none; */
        /* background: #7ecfc1; */
    }

    .box-a .icon img,
    .box-b .icon img,
    .box-c .icon img,
    .box-d .icon img {
        width: 100%;
        display: block;
    }

    .box .title {
        font-weight: 600;
        font-variation-settings: "DOTS" 1;
        color: var(--second-color);
    }

    .box-c .text,
    .box-d .text {
        width: 87%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

        .box-c .text img {
            width: 35px;
            background: #f1f1f1;
            padding: 8px;
            border-radius: 50%;
            box-sizing: border-box;
            filter: opacity(0.8);
        }

    .box-c b {
        display: block;
    }

    .box-c small {
        font-weight: 370;
    }

    .box-first {
        margin-top: 0px;
        position: relative;
    }

    .box-d .item:not(:last-child)::before {
        right: calc(20px + 15px);
    }

    .box-d .text {
        width: calc(100% - 15px - 20px);
    }

        .box-d .text b {
            font-size: 14px;
            font-weight: 370;
            color: var(--text-onback-low);
        }

    .box-d .icon {
        width: 25px;
        filter: contrast(0.1);
    }

    .box-d .text img {
        width: 15px;
        opacity: .7;
    }

    /*......................................................................................................................*/
    h2 {
        margin: auto;
        font-size: 18px;
        font-weight: 450;
    }

    h3 {
        color: var(--text-onback-low);
        font-weight: 450;
        margin: 0;
    }

    h4 {
        font-size: 16px;
        font-weight: 600;
        text-align: center;
        color: var(--second-color);
        margin: 0 0 var(--padding-container);
    }

    .description {
        color: var(--text-onback-low);
        text-align: center;
        font-weight: 450;
        margin-top: 0;
    }

    .module {
        background: #fff;
        min-height: 100vh;
        margin: calc(-1 * var(--padding-container));
        padding: var(--padding-container);
        box-sizing: border-box;
        /**/
        padding-bottom: 190px;
    }

    /*imaportantText*/
    .imaportantText {
        background: var(--main-color);
        border-radius: 12px;
        padding: 10px;
        box-sizing: border-box;
        color: #f1f1f1;
        margin-bottom: var(--padding-container);
        box-shadow: 0 5px 7px #7713085e;
    }

    .topTitle {
        width: 100%;
        font-weight: 450;
        margin: 30px 0 10px;
        color: var(--text-onback-low);
        display: flex;
        align-items: center;
        gap: 5px;
    }

        .topTitle span {
            flex-grow: 1;
            border-top: 1px solid #DFE1E5;
        }

    .modules-distance {
        margin: var(--padding-container) 0;
        border-bottom: 1px dashed #DFE1E5;
    }

    .reportText {
        margin: var(--padding-container) 0;
        padding: 10px;
        background: #818181;
        color: #fff;
        border-radius: 8px;
        box-shadow: 0 5px 7px #8181815e;
        box-sizing: border-box;
        display: block;
    }

    .result-item .title {
        padding-bottom: 10px;
    }
}
/* Bottom Navigation Active State */
.bottom-navigation .nav-item {
    transition: all 0.3s ease;
    position: relative;
}

    .bottom-navigation .nav-item.active {
        color: var(--main-color); /* رنگ اصلی سایتت */
        font-weight: 700;
        font-size: 12px;
    }

        .bottom-navigation .nav-item.active .nav-icon {
            filter: brightness(1.1) saturate(1.3); /* یا هر فیلتر دیگه که دوست داری */
            /* اگر می‌خوای آیکون کاملاً متفاوت باشه، می‌تونی src رو با js عوض کنی */
        }

/* افکت کوچک زیر آیکون فعال (اختیاری ولی خیلی قشنگه) */
/*.bottom-navigation .nav-item.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 50%;
            transform: translateX(-50%);
            width: 5px;
            height: 5px;
            background: var(--main-color);
            border-radius: 50%;
        }*/

/* باکس اطلاع‌رسانی همیشه در بالا - راه‌حل قطعی */
.info-box-top {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: #fff3cd;
    border-bottom: 1px solid #ffeaa7;
    padding: 8px 16px;
    margin: 0 0 8px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
    color: #19160c;
}

.info-box-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    flex-wrap: wrap;
}

.info-text {
    flex: 1;
    line-height: 1.5;
    font-weight: 500;
}

.info-btn {
    background: var(--main-color) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0px 17px !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 12px rgba(25, 60, 54, 0.3) !important;
    min-height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

    .info-btn:hover {
        background: #0f2a24 !important;
        transform: translateY(-1px) !important;
    }

/* در صورتی که داخل ماژول بود، کمی فاصله بده */
.module .info-box-top {
    margin: -16px -16px 16px -16px; /* تنظیم فاصله نسبت به padding ماژول */
    border-radius: 0;
}
/* ریسپانسیو */
@media (min-width: 525px) {
    .info-box {
        font-size: 14px;
        padding: 14px 18px;
    }

    .info-btn {
        padding: 9px 22px;
    }
}

@media (min-width: 525px) {
    .box-a .icon, .box-b .icon {
        width: 50%;
    }

    .box-a .icon,
    .box-b .icon,
    .box-c .icon {
        padding: 15px;
    }

    .box-a .icon {
        padding: 12px;
    }
}

@media (min-width: 768px) {
}

@media (min-width:992px) {
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    ::-webkit-scrollbar-thumb {
        background: #c4c4c4;
        border-radius: 48px
    }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--main-color)
        }

    ::-webkit-scrollbar-track {
        background: #fff;
    }
}

@media (min-width:1200px) {
    .box-a .icon, .box-b .icon {
        padding: 12px;
    }

    .box-c .icon {
        width: 18%;
    }
}

@media (min-width: 525px) {

    /* تنظیم برای عنوان‌های خرید و فروش در سایزهای بزرگ‌تر */
    .box-c .goldBuyTitle,
    .box-c .goldSellTitle {
        padding: 14px 10px;
        font-size: 14px;
        min-height: 52px;
    }
}

@media (min-width: 1200px) {
    .box-c .goldBuyTitle,
    .box-c .goldSellTitle {
        width: 27%; /* کمی کوچکتر در دسکتاپ اگر لازم بود */
        padding: 13px 12px;
    }
}

@media only screen and (max-width: 768px) and (min-width: 0) {
}
