/* input(639,1): run-time error CSS1031: Expected selector, found '@font-face'
input(639,1): run-time error CSS1025: Expected comma or open brace, found '@font-face' */
/* =========================================================
   Mynce Public Layout
   Desktop Navigation + Mobile Bootstrap Collapse + Bottom Nav
   ========================================================= */

/* =========================================================
   Font
   ========================================================= */

@font-face {
    font-family: "IRANSans";
    src: url("../Fonts/irsans.ttf?v=IFs5QFvt32Dfe2hZeeYjb29VeYA") format("truetype");
    font-style: normal;
    font-weight: normal;
    font-display: swap;
}

/* =========================================================
   Variables
   ========================================================= */

:root {
    --mn-primary: #0d6efd;
    --mn-success: #198754;
    --mn-danger: #dc3545;
    --mn-warning: #ffc107;
    --mn-dark: #212529;
    --mn-muted: #6c757d;
    --mn-border: #e5e7eb;
    --mn-light: #f8f9fa;
}

/* =========================================================
   Reset & Base
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    background-color: #f5f5f5;
    color: var(--mn-dark);
    font-family: "IRANSans", Tahoma, Arial, sans-serif !important;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}

img {
    display: block;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

a {
    text-decoration: none;
}

/* =========================================================
   Header
   ========================================================= */

.main-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible !important;
    background-color: #ffffff;
    border-bottom: 1px solid var(--mn-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    min-height: 72px;
    margin: 0;
    padding: 0.5rem 1.25rem;
    gap: 1rem;
    overflow: visible !important;
}

/* =========================================================
   Logo and Brand (Horizontal Layout)
   ========================================================= */

.brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 0;
    color: inherit;
    text-decoration: none !important;
}

.brand-logo-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-width: 0;
    direction: rtl;
}

    .brand-logo-box .brand-logo {
        display: block;
        width: 100px;
        height: auto;
        max-height: 44px;
        object-fit: contain;
        object-position: center;
    }

.brand-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
    line-height: 1.2;
    white-space: nowrap;
}

.brand-name {
    display: block;
    margin: 0;
    padding: 0;
    color: var(--mn-dark);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
}

.brand-tagline {
    display: block;
    margin: 2px 0 0;
    padding: 0;
    color: var(--mn-muted);
    font-size: 0.65rem;
    font-weight: 500;
    line-height: 1.2;
}

/* =========================================================
   Desktop Navigation
   ========================================================= */

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 1.15rem;
}

    .main-nav .nav-link-item {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 0.25rem;
        color: var(--mn-dark);
        font-size: 0.92rem;
        font-weight: 500;
        line-height: 1.4;
        white-space: nowrap;
        border-bottom: 2px solid transparent;
        transition: color 0.2s ease, border-color 0.2s ease;
    }

        .main-nav .nav-link-item:hover {
            color: var(--mn-primary);
        }

        .main-nav .nav-link-item.active {
            font-weight: 700;
            color: var(--mn-primary) !important;
            border-bottom: 2px solid var(--mn-primary);
        }

/* =========================================================
   Header Action Buttons
   ========================================================= */

.action-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    min-width: 0;
    gap: 0.5rem;
}

    .action-buttons .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 38px;
        padding: 0.4rem 0.8rem;
        border-radius: 7px;
        font-size: 0.85rem;
        font-weight: 600;
        line-height: 1;
        white-space: nowrap;
    }

.menu-toggle-btn {
    display: none;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    padding: 0;
    color: var(--mn-dark);
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 6px;
    cursor: pointer;
}

    .menu-toggle-btn:hover {
        color: var(--mn-primary);
        border-color: var(--mn-primary);
    }

/* =========================================================
   Mobile Menu Container (Bootstrap Collapse Compatible)
   ========================================================= */

.mobile-nav-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    border-top: 1px solid #f1f3f5;
}

.mobile-nav {
    width: 100%;
    padding: 0.5rem 1rem 1rem;
}

    .mobile-nav .mobile-nav-link {
        display: block;
        width: 100%;
        padding: 0.7rem 0.5rem;
        color: var(--mn-dark);
        font-size: 0.9rem;
        font-weight: 500;
        text-decoration: none;
        border-bottom: 1px solid #f1f3f5;
        border-radius: 6px;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

        .mobile-nav .mobile-nav-link:last-child {
            border-bottom: 0;
        }

        .mobile-nav .mobile-nav-link:hover {
            color: var(--mn-primary);
        }

        .mobile-nav .mobile-nav-link.active {
            background-color: #f0f7ff;
            font-weight: 700;
            color: var(--mn-primary) !important;
        }

/* =========================================================
   Main Content & General Components
   ========================================================= */

.main-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.breadcrumb-section {
    width: 100%;
    background-color: var(--mn-light);
}

.breadcrumb-item a {
    color: var(--mn-primary);
    text-decoration: none;
}

    .breadcrumb-item a:hover {
        color: var(--mn-dark);
    }

.breadcrumb-item.active {
    color: var(--mn-muted);
}

.btn-cta-mines {
    display: inline-block;
    padding: 10px 20px;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    background-color: var(--mn-primary);
    border-radius: 5px;
}

.highlight-text {
    color: #2c3e50;
    font-weight: 600;
}

.card-img-top-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 210px;
    color: #ffffff;
    background-color: #adb5bd;
}

/* =========================================================
   Footer
   ========================================================= */

.main-footer {
    width: 100%;
    max-width: 100%;
}

.footer-logo {
    display: block;
    width: auto;
    height: 38px;
    object-fit: contain;
}

.footer-brand-name {
    white-space: nowrap;
}

.footer-description {
    line-height: 1.9;
}

.footer-links-list .footer-link {
    color: var(--mn-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

    .footer-links-list .footer-link:hover {
        color: var(--mn-primary);
    }

.footer-section-title {
    color: var(--mn-dark);
}

.footer-bottom {
    line-height: 1.8;
}

/* =========================================================
   Bottom Navigation (Mobile App Bar)
   ========================================================= */

.bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    height: 70px;
    padding: 0 5px env(safe-area-inset-bottom);
    background-color: #ffffff;
    border-top: 1px solid #eeeeee;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.08);
}

    .bottom-nav .nav-item {
        display: flex;
        flex: 1;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 0;
        height: 100%;
        padding: 0;
        color: var(--mn-muted);
        font-size: 0.75rem;
        text-align: center;
        background: none;
        border: 0;
    }

        .bottom-nav .nav-item i {
            margin-bottom: 2px;
            color: var(--mn-muted);
            font-size: 1.35rem;
        }

        .bottom-nav .nav-item.active,
        .bottom-nav .nav-item.active i {
            color: var(--mn-primary);
        }

/* =========================================================
   Center Action Button & Menu in Bottom Nav
   ========================================================= */

.nav-center-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    width: 65px;
    min-width: 65px;
}

.nav-center-main {
    position: relative;
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-top: -35px;
    color: #ffffff;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
    cursor: pointer;
}

    .nav-center-main i {
        color: #ffffff;
        font-size: 1.6rem;
    }

.nav-center-menu {
    position: absolute;
    bottom: 80px;
    left: 50%;
    z-index: 1070;
    display: none;
    flex-direction: column;
    width: 180px;
    gap: 10px;
    transform: translateX(-50%);
}

    .nav-center-menu.show {
        display: flex;
    }

    .nav-center-menu .action-btn {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 8px 15px;
        color: var(--mn-dark);
        font-family: inherit;
        font-size: 0.85rem;
        text-align: right;
        background-color: #ffffff;
        border: 0;
        border-radius: 50px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }

        .nav-center-menu .action-btn i {
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 28px;
            width: 28px;
            height: 28px;
            color: #ffffff !important;
            border-radius: 50%;
        }

        .nav-center-menu .action-btn.income i {
            background-color: var(--mn-primary);
        }

        .nav-center-menu .action-btn.expense i {
            background-color: var(--mn-danger);
        }

        .nav-center-menu .action-btn.warning i {
            background-color: var(--mn-warning);
        }

/* =========================================================
   Responsive Breakpoints
   ========================================================= */

/* دسکتاپ: 768px به بالا */
@media (min-width: 768px) {
    .main-nav {
        display: flex !important;
    }

    .menu-toggle-btn {
        display: none !important;
    }

    .mobile-nav-container {
        display: none !important;
    }
}

/* تبلت و موبایل: زیر 768px */
@media (max-width: 767.98px) {
    .main-header {
        overflow: visible !important;
    }

    .header-inner {
        min-height: 64px;
        padding: 0.4rem 0.75rem;
        gap: 0.4rem;
    }

    .main-nav {
        display: none !important;
    }

    .menu-toggle-btn {
        display: inline-flex !important;
    }

    .brand-link {
        flex: 1 1 auto;
        min-width: 0;
    }

    .brand-logo-box .brand-logo {
        width: 80px;
        height: auto;
    }

    .brand-name {
        font-size: 0.95rem;
    }

    .brand-tagline {
        font-size: 0.58rem;
    }

    .action-buttons {
        gap: 0.25rem;
    }

        .action-buttons .btn {
            min-height: 34px;
            padding: 0.35rem 0.5rem;
            font-size: 0.75rem;
        }

    .footer-bottom {
        justify-content: center !important;
        text-align: center;
    }

    .copyright-text {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* موبایل‌های کوچک: زیر 480px */
@media (max-width: 480px) {
    .header-inner {
        min-height: 60px;
        padding: 0.35rem 0.5rem;
    }

    .brand-tagline {
        display: none;
    }

    .brand-name {
        font-size: 0.88rem;
    }

    .action-buttons .btn {
        min-height: 32px;
        padding: 0.3rem 0.45rem;
        font-size: 0.7rem;
    }

    .menu-toggle-btn {
        width: 34px;
        height: 34px;
    }
}

﻿ /* ======================================================
   Mynce Modern Layout CSS - Fixed Colors & Visibility
   ====================================================== */
@font-face {
    font-family: 'IRANSans';
    src: url('../Fonts/irsans.ttf?v=IFs5QFvt32Dfe2hZeeYjb29VeYA') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --mn-primary: #0d6efd;
    --mn-success: #198754;
    --mn-danger: #dc3545;
    --mn-warning: #ffc107;
    --mn-dark: #212529;
    --mn-text-muted: #6c757d;
    --mn-bg-light: #f8f9fa;
}

body {
    background: #f5f5f5;
    padding-bottom: 80px;
    font-family: 'IRANSans', Tahoma, sans-serif !important;
    margin: 0;
}

/* --- Bottom Navigation --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    height: 70px;
    background-color: #ffffff;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1050;
    padding: 0 5px;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.08);
    padding-bottom: env(safe-area-inset-bottom);
}

    /* آیتم‌های ناوبری */
    .bottom-nav .nav-item {
        text-align: center;
        text-decoration: none;
        color: var(--mn-text-muted);
        font-size: 0.75rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        transition: all 0.2s ease;
        border: none;
        background: none;
    }

        .bottom-nav .nav-item i {
            font-size: 1.4rem;
            margin-bottom: 2px;
            color: var(--mn-text-muted);
        }

        .bottom-nav .nav-item.active {
            color: var(--mn-primary);
        }

            .bottom-nav .nav-item.active i {
                color: var(--mn-primary);
            }

/* --- دکمه سبز وسط (Quick Action) --- */
.nav-center-wrapper {
    position: relative;
    width: 65px;
    display: flex;
    justify-content: center;
}

.nav-center-main {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
    margin-top: -35px; /* دکمه را به بالا می‌کشد */
    cursor: pointer;
    z-index: 1100;
    transition: transform 0.2s;
}

    .nav-center-main:active {
        transform: scale(0.9);
    }

    .nav-center-main i {
        font-size: 1.6rem;
    }

/* --- منوی پاپ‌آپ (Quick Menu) --- */
.nav-center-menu {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 1090;
    width: 180px;
}

    .nav-center-menu.show {
        display: flex;
        transform: translateX(-50%) translateY(0);
        animation: fadeInMenu 0.2s ease-out;
    }

@keyframes fadeInMenu {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.nav-center-menu .action-btn {
    border: none;
    border-radius: 50px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    font-size: 0.85rem;
    color: var(--mn-dark);
    text-align: right;
    width: 100%;
    font-family: inherit;
}

    /* دایره کوچک کنار متن در منو */
    .nav-center-menu .action-btn i {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff !important;
        font-size: 1rem;
        flex-shrink: 0;
    }



    .nav-center-menu .action-btn.income i {
        background-color: var(--mn-primary);
    }

    .nav-center-menu .action-btn.expense i {
        background-color: var(--mn-danger);
    }


    .nav-center-menu .action-btn.warning i {
        background-color: var(--mn-warning);
    }

.btn-cta-mines {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
}

.highlight-text {
    color: #2c3e50;
    font-weight: 600;
}

.card-img-top-placeholder {
    min-height: 210px;
    background-color: #adb5bd; /* طوسی */
    color: #ffffff;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .card-img-top-placeholder:hover {
        background-color: #6c757d; /* طوسی تیره‌تر هنگام hover */
        color: #ffffff;
    }

    /* اگر بخواهی متن داخل Placeholder همیشه سفید بماند */
    .card-img-top-placeholder .text-muted {
        color: rgba(255, 255, 255, 0.9) !important;
    }

/* ======================================================
   Article & Blog Cards Uniform Dimensions & Heights
   ====================================================== */

.article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .article-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    }

    .article-card a.overflow-hidden {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        background-color: #f1f3f5;
        display: block;
    }

    .article-card .article-cover-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        transition: transform 0.35s ease;
    }

    .article-card:hover .article-cover-image {
        transform: scale(1.04);
    }

    .article-card .card-body {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        padding: 1.25rem;
    }

    .article-card .card-title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 3.2rem;
        line-height: 1.6;
    }

    .article-card .card-text {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.7;
        margin-bottom: 1rem;
    }

    .article-card .card-body .mt-auto {
        margin-top: auto !important;
    }

    .persian-digits,
    .article-card small,
    .copyright-text {
        font-feature-settings: "ss01" 1, "ss02" 1; /* برای فونت‌های ایران‌سنس/ایران‌یکان */
        -webkit-font-feature-settings: "ss01" 1, "ss02" 1;
    }