﻿html, body {
    margin: 0;
    height: 100%;
}

#content {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}



.container {
    flex: 1;
}


.user-content {
    margin: 0;
    width: 100%;
    overflow-x: hidden;
}


.top-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap:18px;
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url(../../images/system/bg-top-header.jpg);
    background-size: cover;
    min-height: 80px;
    align-items: center;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1rem;
    padding-right: 8px;
    padding-left: 8px;
}



    .top-header h1 {
        display: inline-block;
        font-size: 1.1rem;
        margin-top: 0;
        margin-bottom: 0;
        color: #ffffff;
    }

    .top-header h2 {
        display: inline-block;
        font-size: 1.0rem;
        margin-top: 0;
        margin-bottom: 0;
        color: #ffffff;
    }

    .top-header i {
        margin-left: 15px;
        margin-right: 15px;
        position: relative;
        top: 5px;
        font-size: 1.3rem;
    }


.top-menu {
    position: relative;
    padding-right: 25px;
    padding-left: 25px;
    font-size: 1.1rem;
    display: flex;
    flex-wrap: wrap;
    min-height: 70px;
    align-items: center;
    border-bottom: 1px solid #c7c7c7;
    justify-content: space-between;
    padding-bottom: 8px;
    padding-top: 8px;
}

    .top-menu img {
        border-radius: 50%;
        height: 40px;
        width: 40px;
    }

.top-menu {
    display: flex;
    justify-content: space-between; /* فاصله بین title و left */
    align-items: center;
    flex-wrap: wrap;
    padding: 8px 25px;
}

.top-menu-title,
.top-menu-left {
    flex: 1; /* فضای مساوی به طرفین */
    justify-content: center;
}

.top-menu-center {
    flex: 4; /* اندازه واقعی خودش را حفظ کند */
    display: flex;
    justify-content: space-between; /* وسط چین کردن دو h2 */
    gap: 20px; /* فاصله بین دو h2 */
    text-align: center;
    flex-wrap: wrap;
    padding-right: 25px;
    padding-left: 25px;
}




.top-menu-title {
    display: flex;
    position: relative;
    height: 100%;
    align-items: center;
    border-left: 1px solid #c7c7c7;
    width: fit-content;
    padding-left: 25px
}

    .top-menu-title h2 {
        font-size: 1.1rem;
        position: relative;
        top: 5px;
        right: 10px;
    }


.top-menu-left {
    display: inherit;
    border-right: 1px solid #c7c7c7;
    height: 100%;
    align-items: center;
    padding-right: 25px;
    order: 3;
}



.top-menu-center {
    padding-top: 5px;
}

    .top-menu-center h2 {
        font-size: 1.1rem;
    }



/*.footer {
    margin-top: 15px;
    background-color: #0a0836;
    min-height: 210px;
    padding-bottom: 35px;
}*/

    .footer svg {
        position: relative;
        top: -10px;
        width: 100%;
        color: #EBEEF4;
    }

.footer-content {
    margin-top: -25px;
    padding-right: 35px;
    padding-left: 35px;
    display: flex;
    color: #ffffff;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-title h3 {
    color: #ffffff;
    font-size: 1rem;
}

.footer-title h4 {
    color: #ffffff;
    font-size: 0.85rem;
    margin-top: 15px;
}

.footer-center h4 {
    color: #ffffff;
    font-size: 0.8rem;
}

.footer-left {
    padding-left: 50px
}

    .footer-left h6 {
        color: #ffffff;
        font-size: 0.8rem;
        margin-top: 15px;
    }

        .footer-left h6 a {
            color: #ffffff;
            font-size: 0.8rem;
            margin-top: 15px;
        }

.footer-social a {
    color: #ffffff;
    font-size: 25px;
    text-decoration: none;
    margin: 2px;
}

.social-instagram {
    display: inline-block;
    transition: 0.2s ease;
}

    .social-instagram i {
        font-size: 28px;
        transition: inherit;
    }

    .social-instagram:hover {
        color: #E1306C; /* رنگ ساده اینستاگرام */
        transform: scale(1.15);
    }



.social-telegram {
    display: inline-block;
    transition: 0.2s ease;
}

    .social-telegram i {
        font-size: 28px;
        transition: inherit;
    }

    .social-telegram:hover {
        color: #0088cc; /* رنگ ساده اینستاگرام */
        transform: scale(1.15);
    }

.social-whatsapp {
    display: inline-block;
    transition: 0.2s ease;
}

    .social-whatsapp i {
        font-size: 28 px;
        transition: inherit;
    }

    .social-whatsapp:hover {
        color: #25D366; /* رنگ ساده اینستاگرام */
        transform: scale(1.15);
    }


.gold-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* فاصله بین کارت‌ها */
}

    /* موبایل — 1 کارت */
    .gold-row .card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .gold-row .card-body {
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }




@media (max-width: 768px) {

    .top-menu {
        flex-direction: column; /* ردیفی → ستونی */
        align-items: stretch; /* آیتم‌ها width 100% */
        justify-content: flex-start;
    }

    .top-menu-center {
        display: none !important;
    }

    .top-menu-title {
        order: 1;
        width: 100%;
        display: flex;
        justify-content: center;
        border-left: 0;
        padding-left: 0;
        margin-bottom: 8px;
    }

    .top-menu-left {
        order: 2;
        width: 100%;
        display: flex;
        justify-content: center; /* دقیقا چپ */
        border-right: 0;
        padding-right: 0;
        margin-top: 0;
    }

    .top-menu-title {
        border-left: 0px solid #c7c7c7;
    }

    .footer-content {
        flex-direction: column;
    }

    /*   .gold-row {
        display: flex;
        flex-direction: column;
        gap: 10px;
        justify-content: center;
        flex-wrap: wrap;
    }*/


}



/* تبلت — 2 کارت */
@media (min-width: 768px) {
    .gold-row .card {
        flex: 1 1 calc(50% - 15px);
        max-width: calc(100% - 15px);
    }
}

/* دسکتاپ و بزرگ — 4 کارت */
@media (min-width: 1200px) {
    .gold-row .card {
        flex: 1 1 calc(25% - 15px);
        max-width: calc(100% - 15px);
    }
}


.bg-card-price-success {
    background-color: rgb(222 245 228) !important;
}

.bg-card-price-danger {
    background-color: rgb(255 235 234) !important
}

.highcharts-figure,
.highcharts-data-table table {
    min-width: 360px;
    max-width: 800px;
    margin: 1em auto;
}

.highcharts-data-table table {
    font-family: Verdana, sans-serif;
    border-collapse: collapse;
    border: 1px solid var(--highcharts-neutral-color-10, #e6e6e6);
    margin: 10px auto;
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.highcharts-data-table caption {
    padding: 1em 0;
    font-size: 1.2em;
    color: var(--highcharts-neutral-color-60, #666);
}

.highcharts-data-table th {
    font-weight: 600;
    padding: 0.5em;
}

.highcharts-data-table td,
.highcharts-data-table th,
.highcharts-data-table caption {
    padding: 0.5em;
}

.highcharts-data-table thead tr,
.highcharts-data-table tbody tr:nth-child(even) {
    background: var(--highcharts-neutral-color-3, #f7f7f7);
}

.highcharts-description {
    margin: 0.3rem 10px;
}

.w-fit-content {
    width: fit-content !important;
}

.text-justigy {
    text-align: justify;
}

.line-height-1-7rem {
    line-height: 1.7rem;
}

.abute-us-h1 {
    font-size: 1.3rem;
}

.about-us-call-title {
    font-size: 1.3rem;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap; /* برای ریسپانسیو موبایل */
}

    .about-container p {
        flex: 1 1 60%; /* متن بیشتر فضا بگیرد */
        text-align: justify;
        line-height: 1.8;
    }

    .about-container .about-image {
        flex: 1 1 35%;
        max-width: 300px; /* اندازه کنترل‌شده */
        width: 100%;
        height: auto;
    }

.contact-box {
    padding: 0 1.5rem;
}

.contact-row {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

    .contact-row p {
        margin: 0;
    }

.contact-address {
    margin-top: 10px;
}



#map {
    height: 350px;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
}









/* ============= هدر اصلی ============= */
.header {
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 10px 20px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* ============= لوگو ============= */
.header-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.header-logo img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.header-logo span {
    font-size: 1.15rem;
    font-weight: bold;
    color: #333;
}

/* ============= ساعت ============= */
.header-time {
    font-size: .9rem;
    font-weight: bold;
    color: #444;
    margin: 5px 15px;
}

/* ============= دکمه ورود ============= */
.btn-login {
    padding: 8px 15px;
    border-radius: 8px;
    font-size: .9rem;
    text-decoration: none;
    color: #fff;
    white-space: nowrap;
}

    .btn-login.warning {
        background: #f0ad4e;
    }

    .btn-login.success {
        background: #28a745;
    }

/* ============= منو ============= */
.header-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    padding: 0;
    margin: 0;
}

.header-nav a {
    text-decoration: none;
    font-size: .95rem;
    color: #333;
    font-weight: 600;
}

    .header-nav a:hover {
        color: #ff9800;
    }

/* ============= دکمه همبرگری موبایل ============= */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
}

    .hamburger span {
        width: 28px;
        height: 3px;
        background: #333;
        border-radius: 3px;
    }



/* ============= واکنشگرایی موبایل ============= */
@media (max-width: 768px) {

    .header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .header-time {
        order: 5;
        text-align: center;
        width: 100%;
        margin-bottom:10px;
    }

    .header-login {
        order: 2;
        text-align: center;
        margin-bottom:10px
    }

    /* فعال کردن دکمه همبرگری */
    .hamburger {
        display: flex;
        order: 2;
        align-items: center;
        margin-bottom: 15px;
        justify-content: center;
    }

    /* منو مخفی */
    .header-nav {
        display: none;
        width: 100%;
        order: 3;
        background: #fff;
        border-top: 1px solid #ddd;
        padding: 10px 0;
    }

        /* منو بعد از باز شدن */
        .header-nav.show {
            display: block;
        }

        .header-nav ul {
            flex-direction: column;
            gap: 15px;
            text-align: center;
        }
}

/* ============================
   نسخه موبایل — max-width: 768px
   ============================ */
/* حالت موبایل */
/* حالت موبایل */
@media (max-width: 768px) {

    .header-container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    /* ردیف ۱: لوگو */
    .header-logo {
        order: 1;
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
    }

    /* ردیف ۲: همبرگری + دکمه ورود */
    .hamburger,
    .header-login {
        order: 2;
    }

    /* همبرگری + ورود در یک ردیف */
    .hamburger,
    .header-login {
        display: flex;
        align-items: center;
    }

    /*.header-login {
        margin-right: auto;*/ /* دکمه بره سمت چپ */
    /*}

    .hamburger {
        margin-left: auto;*/ /* همبرگری بره سمت راست */
    /*}*/

    /* چون nav مخفی می‌شود */
    .header-nav {
        order: 3;
        width: 100%;
    }
}












/* ========== هدر عمومی ========== */
.header {
    background: #fff;
    border-bottom: 1px solid #e3e3e3;
    padding: 10px 16px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
}

/* لوگو */
.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .header-logo img {
        width: 45px;
        height: 45px;
        border-radius: 50%;
    }

/* زمان */
.header-time {
    font-weight: 600;
    color: #333;
}

/* منو اصلی (دسکتاپ) */
.header-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav a {
    text-decoration: none;
    font-weight: 600;
    color: #333;
    font-size: 0.85rem;
}

/* دکمه ها */
.btn-login {
    padding: 8px 14px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

    .btn-login.warning {
        background: #f0ad4e;
    }

    .btn-login.success {
        background: #28a745;
    }

/* همبرگر (پیش‌فرض مخفی در دسکتاپ) */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
}

    .hamburger span {
        display: block;
        height: 4px;
        width: 30px;
        border-radius: 3px;
        background: #333;
        margin: 1px 0;
    }

/* ========== حالت موبایل ========== */
@media (max-width: 768px) {

    .header-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* لوگو — ردیف اول */
    .header-logo {
        order: 1;
        justify-content: center;
        width: 100%;
    }

    /* mobile-controls — ردیف دوم: دکمه ورود و همبرگری در یک ردیف */
    .mobile-controls {
        order: 2;
        display: flex;
        align-items: center;
        justify-content: center; /* ورود سمت چپ، همبرگری سمت راست */
        width: 100%;
        gap: 20px;
        padding: 0 6px;
    }

        .mobile-controls .header-login {
            display: flex;
            align-items: center;
            justify-content: center /* دکمه ورود سمت چپ */
        }

        .mobile-controls .hamburger {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            border: none;
        }

    /* منو (پنهان پیش‌فرض) */
    .header-nav {
        order: 3;
        width: 100%;
        display: none; /* نمایش با کلاس show */
        flex-direction: column;
        background: #fff;
        padding: 12px;
        gap: 10px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.06);
        border-radius: 8px;
    }

        .header-nav.show {
            display: flex;
        }

        .header-nav ul {
            flex-direction: column;
            gap: 12px;
        }

    /* ساعت در موبایل — ردیف سوم یا پایین تر */
    .header-time {
        order: 4;
        width: 100%;
        text-align: center;
        font-size: .95rem;
        padding-top: 4px;
    }
}


html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.site-wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1 0 auto;
}

.gs-footer {
    flex-shrink: 0;
}


.gs-footer {
    background: linear-gradient(145deg, #212121, #181818);
    color: #eee;
    padding: 50px 20px 20px;
    font-family: "IRANSans", "Shabnam", sans-serif;
    border-top: 3px solid #d4af37; /* طلایی */
}

.gs-footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
}

.gs-footer-box h3 {
    color: #d4af37;
    font-size: 22px;
    margin-bottom: 15px;
}

.gs-footer-box h4 {
    color: #d4af37;
    font-size: 18px;
    margin-bottom: 12px;
}

.gs-footer-box p {
    color: #ccc;
    line-height: 1.9;
    font-size: 14px;
    text-align: justify;
}

.gs-footer-box ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

    .gs-footer-box ul li {
        margin-bottom: 10px;
        color: #ccc;
        font-size: 14px;
    }

        .gs-footer-box ul li a {
            color: #bbb;
            text-decoration: none;
            transition: 0.3s;
        }

            .gs-footer-box ul li a:hover {
                color: #d4af37;
            }

.gs-social a {
    color: #fff;
    margin-left: 12px;
    font-size: 25px;
    transition: 0.3s;
}

    .gs-social a:hover {
        color: #d4af37;
    }

/* CopyRight */
.gs-footer-copy {
    text-align: center;
    padding-top: 25px;
    margin-top: 20px;
    border-top: 1px solid #333;
    font-size: 14px;
    color: #aaa;
}

/* Responsive */
@media (max-width: 992px) {
    .gs-footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 600px) {
    .gs-footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .gs-footer-box p {
        text-align: center;
    }

    .gs-social a {
        margin: 0 8px;
    }
}








.gold-row {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* برابر با 25% */
    gap: 12px;
}

.gold-card {
    min-width: 200px;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* ریسپانسیو ها */
@media (max-width: 992px) {
    .gold-row {
        grid-template-columns: repeat(2, 1fr); /* نصف شدن مثل قبل */
    }
}

@media (max-width: 576px) {
    .gold-row {
        grid-template-columns: 1fr; /* تک ستونه */
    }
}

.card-body {
    padding: 18px;
}

    .card-body.positive {
        background: #E6F6EE;
        color: #0E8A44;
        border-top: 2px solid #B8E9D0;
    }

    .card-body.negative {
        background: #FCEAEA;
        color: #C62828;
        border-top: 2px solid #F5C2C2;
    }


.gold-title {
    font-weight: bold;
    margin-bottom: 6px;
}

.gold-price {
    font-size: 20px;
    font-weight: bold;
    margin-top: 4px;
}

.percent {
    font-size: 14px;
    opacity: .8;
}
