/* ==========================================================================
   site.css — Base, Tokens & Global Shell Layout (header, navbar, mega menu, sidebar, footer, global form overrides, global responsive)
   ========================================================================== */

/* =========================================================
   STTech / LonarProCraft - Master Unified Theme
   (Global Site + Navbar + Mega Menu + Sidebar + UI Components)
   ========================================================= */
/* =========================================================
   1. Typography / Font
   ========================================================= */
@font-face {
    font-family: "VazirFD";
    src: url("/fonts/Vazir-Black-FD.woff2") format("woff2"), url("/fonts/Vazir-Black-FD.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
/* =========================================================
   2. Design Tokens & Root Variables
   ========================================================= */
:root {
    --site-bg: #030712;
    --site-text: #e2e8f0;
    --site-text-muted: #94a3b8;
    --accent: #00d2ff;
    --accent-light: #38bdf8;
    --accent-dark: #0284c7;
    --gold: #ffd700;
    --glass-bg: rgba(10, 20, 38, 0.75);
    --glass-bg-heavy: rgba(11, 22, 39, 0.92);
    --glass-border: rgba(0, 210, 255, 0.22);
    --glass-border-subtle: rgba(255, 255, 255, 0.1);
    --header-height: 68px;
    --footer-height: 56px;
    --sidebar-width: 270px;
}
/* =========================================================
   3. Global Base & Accessibility
   ========================================================= */
html {
    font-size: 14px;
    direction: rtl;
    min-height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
}
*, *::before, *::after {
    box-sizing: inherit;
}
html, body {
    min-height: 100%;
}
body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    direction: rtl;
    text-align: right;
    font-family: "VazirFD", "Segoe UI", Tahoma, sans-serif;
    background-color: var(--site-bg);
    color: var(--site-text);
    overflow-x: hidden;
}
/* Accessibility Focus Ring */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    outline: none !important;
    box-shadow: 0 0 0 0.1rem #0a1728, 0 0 0 0.25rem var(--accent) !important;
}
/* =========================================================
   4. Application Layout System
   ========================================================= */
.app-layout-container {
    width: 100%;
    flex: 1 0 auto;
    display: flex;
    align-items: stretch;
    min-height: 0;
    position: relative;
    direction: rtl;
}
.main-content-wrapper {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    padding: 10px;
    transition: margin-right 0.3s ease, width 0.3s ease, opacity 0.3s ease;
}
.main-content-wrapper main {
        width: 100%;
        position: relative;
        z-index: 5;
        padding-bottom: 2rem;
    }
.container-fluid:has(> main) {
    flex: initial;
}
/* =========================================================
   5. Header & Navigation Bar
   ========================================================= */
header,
.app-header {
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    flex: 0 0 auto;
    z-index: 1030;
}
header .navbar,
    .navbar {
        position: relative;
        width: 100%;
        margin: 0 !important;
        padding: 0.65rem 0;
        background: rgba(6, 12, 24, 0.78) !important;
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border: none !important;
        z-index: 1030;
    }
/* خط نئونی طلایی زیر هدر */
header .navbar::after,
        .navbar::after {
            content: "";
            position: absolute;
            right: 0;
            bottom: 0;
            left: 0;
            height: 2px;
            background: linear-gradient(90deg, rgba(212, 175, 55, 0.12) 0%, #f5d061 20%, #ffd700 50%, #f5d061 80%, rgba(212, 175, 55, 0.12) 100%);
            box-shadow: 0 1px 8px rgba(255, 215, 0, 0.4);
            pointer-events: none;
        }
.navbar .container-fluid {
            width: 100%;
            margin: 0;
            padding-left: 1rem;
            padding-right: 1rem;
        }
/* Brand & Header Logo */
.header-title-main {
    font-size: 0.99rem;
    font-weight: 700;
    color: #ffffff;
}
.header-title-sub {
    font-size: 0.91rem;
    font-weight: 500;
    color: var(--site-text-muted);
}
.header-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
}
.logo-shine {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 8px;
}
.brand-logo {
    width: auto;
    height: 38px;
    display: block;
}
.logo-shine::after {
    content: "";
    position: absolute;
    top: -20%;
    left: -75%;
    width: 40%;
    height: 140%;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.15) 30%, rgba(255, 255, 255, 0.65) 50%, rgba(255, 255, 255, 0.15) 70%, transparent 100%);
    transform: skewX(-25deg);
    animation: shineMove 3.5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes shineMove {
    0% {
        left: -75%;
    }

    60% {
        left: 140%;
    }

    100% {
        left: 140%;
    }
}
/* =========================================================
   6. Navbar Nav Items & Action Buttons (حل ریشه‌ای فاصله آیکون)
   ========================================================= */
.navbar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.navbar-nav .nav-item {
        margin: 0;
        padding: 0;
    }
.navbar .nav-link {
    color: #cbd5e1 !important;
    padding: 0.4rem 0.75rem;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.navbar .nav-link:hover {
        color: var(--accent-light) !important;
    }
/* دکمه‌های اقدام نوبار مانند پنل ماینکرفت و خروج */
.navbar-nav .navbar-action,
.btn-minecraft-panel,
header .navbar .btn-header-auth,
header .navbar .btn-outline-light,
header .navbar .btn-outline-secondary,
header .navbar .btn-outline-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important; /* فاصله قطعی و یکنواخت بین آیکون و متن */
    min-height: 38px;
    padding: 0.4rem 0.9rem !important;
    color: #f8fafc !important;
    background: rgba(15, 23, 42, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 0.45rem !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease !important;
}
.navbar-nav .navbar-action:hover,
    .btn-minecraft-panel:hover,
    header .navbar .btn-header-auth:hover,
    header .navbar .btn-outline-light:hover,
    header .navbar .btn-outline-secondary:hover,
    header .navbar .btn-outline-primary:hover {
        color: #0a1120 !important;
        background-color: #ffffff !important;
        border-color: #ffffff !important;
        box-shadow: 0 0 14px rgba(255, 255, 255, 0.45) !important;
        transform: translateY(-1px);
    }
/* ریست و تراز کامل آیکون‌ها و متون داخل دکمه */
.navbar-nav .navbar-action i,
    .navbar-nav .navbar-action svg,
    .btn-minecraft-panel i,
    .btn-minecraft-panel svg {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 1.15rem;
        line-height: 1;
        flex-shrink: 0;
    }
.navbar-nav .navbar-action span,
    .btn-minecraft-panel span {
        display: inline-block;
        line-height: 1;
        margin: 0 !important;
    }
/* Mobile Toggler */
header .navbar .navbar-toggler {
    padding: 0.4rem 0.6rem;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(0, 210, 255, 0.4) !important;
}
header .navbar .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(0, 210, 255, 0.3) !important;
    }
header .navbar .navbar-toggler-icon {
    filter: invert(1) !important;
}
/* =========================================================
   7. Dropdown & Mega Menu
   ========================================================= */
.navbar .dropdown-toggle::after {
    display: inline-block;
    margin-right: 0.35rem;
    margin-left: 0;
    vertical-align: middle;
}
.navbar .nav-item.position-static {
    position: static !important;
}
.navbar .dropdown-menu.mega-menu-custom {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
    padding: 0.75rem 0 0 !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
.navbar .dropdown-menu.mega-menu-custom > .container {
        width: 100%;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
.navbar .dropdown-menu .mega-row {
    width: 100%;
    margin: 0;
    padding: 1.5rem !important;
    background: var(--glass-bg-heavy);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #fff;
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 210, 255, 0.15);
}
.navbar .dropdown-menu .mega-col {
    position: relative;
    min-width: 0;
    flex-shrink: 0;
    margin-bottom: 0.5rem;
}
@media (min-width: 992px) {
    .navbar .dropdown-menu .mega-col:not(:last-child) {
        border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
    }
}
.navbar .dropdown-menu h6 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    color: var(--accent-light);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.8;
    white-space: nowrap;
    border-bottom: 1px solid rgba(0, 210, 255, 0.15);
}
.navbar .dropdown-menu h6 i {
        display: inline-flex;
        font-size: 1.15rem;
    }
.navbar .dropdown-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.navbar .dropdown-menu li {
    display: block;
    margin: 0;
    padding: 0;
}
.navbar .dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 34px;
    margin: 0;
    padding: 0.4rem 0.6rem !important;
    color: #cbd5e1 !important;
    text-align: right;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 0.35rem;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.navbar .dropdown-menu .dropdown-item i {
        flex-shrink: 0;
        line-height: 1;
    }
.navbar .dropdown-menu .dropdown-item:hover,
    .navbar .dropdown-menu .dropdown-item:focus {
        color: var(--gold) !important;
        background-color: rgba(255, 255, 255, 0.08) !important;
        transform: translateX(-4px);
    }
@media (min-width: 992px) {
    .navbar .nav-item.dropdown > .dropdown-menu {
        display: none;
    }

        .navbar .nav-item.dropdown:hover > .dropdown-menu,
        .navbar .nav-item.dropdown > .dropdown-menu.show {
            display: block;
        }
}
/* =========================================================
   8. Sidebar & Mobile Drawer
   ========================================================= */
.app-sidebar {
    flex: 0 0 var(--sidebar-width);
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    align-self: stretch;
    min-height: 0;
    height: auto;
    margin: 10px 10px 20px;
    padding: 0;
    position: relative;
    display: flex !important;
    flex-direction: column;
    z-index: 20;
    transition: margin-right 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, visibility 0.25s ease, transform 0.3s ease;
}
.app-sidebar > .sidebar-wrapper {
        width: 100%;
        height: auto !important;
        min-height: 100%;
        box-sizing: border-box;
    }
html.sidebar-state-collapsed .app-sidebar,
    .app-sidebar.sidebar-is-collapsed {
        margin-right: calc(var(--sidebar-width) * -1 - 20px) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1035;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: rgba(4, 7, 20, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}
/* =========================================================
   9. Forms & Inputs
   ========================================================= */
.form-group {
    position: relative;
    margin-bottom: 1.25rem;
}
.form-group > label {
        position: absolute;
        top: -9px;
        right: 12px;
        z-index: 10;
        padding: 0 8px;
        background-color: #0d1a2d !important;
        border: 1px solid rgba(0, 210, 255, 0.2);
        border-radius: 4px;
        color: #93c5fd !important;
        font-size: 0.8rem;
        font-weight: 600;
        text-align: right;
    }
.form-group > input.form-control,
    .form-group > select.form-select,
    .form-control,
    .form-select {
        width: 100%;
        height: 42px;
        min-height: 42px;
        box-sizing: border-box;
        padding: 0.4rem 0.85rem;
        border-radius: 0.5rem;
        background-color: rgba(6, 14, 28, 0.75) !important;
        border: 1px solid rgba(0, 210, 255, 0.22) !important;
        color: #ffffff !important;
        font-size: 0.9rem;
        text-align: right;
        transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    }
.form-control::placeholder {
            color: #64748b !important;
        }
.form-control:focus,
        .form-select:focus {
            background-color: rgba(8, 20, 42, 0.95) !important;
            border-color: var(--accent) !important;
            box-shadow: 0 0 12px rgba(0, 210, 255, 0.35) !important;
            color: #ffffff !important;
        }
.form-group > input.input-validation-error {
        border-color: #ef4444 !important;
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.3) !important;
    }
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: #64748b;
    text-align: end;
}
.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control::placeholder {
    text-align: start;
}
.invalid-feedback,
span.field-validation-error {
    display: none;
}
/* =========================================================
   10. Action Buttons & Badges
   ========================================================= */
.btn-auth-submit,
.btn-standard {
    height: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0 1.25rem;
    border: none !important;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #0284c7 0%, #00d2ff 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 180, 255, 0.35) !important;
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-auth-submit:hover,
    .btn-standard:hover {
        color: #ffffff !important;
        box-shadow: 0 6px 20px rgba(0, 210, 255, 0.55) !important;
        transform: translateY(-1px);
    }
.badge {
    border-radius: 50px !important;
    font-weight: 500;
}
.border-danger-subtle {
    border-color: rgba(239, 68, 68, 0.4) !important;
}
.border-danger-subtle:hover {
        background-color: rgba(239, 68, 68, 0.15) !important;
        cursor: default;
    }
.text-danger {
    color: #f87171 !important;
}
/* =========================================================
   11. Cards & Auth Pages
   ========================================================= */
.auth-wrapper {
    min-height: calc(100vh - 170px);
    display: flex;
    align-items: flex-start;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}
.card-auth {
    padding: 1.75rem !important;
    background: var(--glass-bg-heavy) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border) !important;
    border-radius: 1rem !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 180, 255, 0.12) !important;
}
.card-auth h5,
    .card-auth .card-title {
        color: #ffffff !important;
    }
.card-auth .text-muted {
        color: var(--site-text-muted) !important;
    }
.card-auth a {
        color: var(--accent-light) !important;
        text-decoration: none;
        transition: color 0.2s ease;
    }
.card-auth a:hover {
            color: #7dd3fc !important;
            text-decoration: underline;
        }
.auth-info-section {
    padding: 1.25rem 1.5rem;
    background: rgba(9, 18, 32, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.85rem;
    text-align: right;
}
.auth-info-section h5 {
        margin-bottom: 0.75rem;
        color: #f8fafc !important;
        font-size: 1.2rem;
        font-weight: 700;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    }
.auth-info-section hr {
        margin: 1rem 0;
        border-top: 1px solid rgba(0, 210, 255, 0.25) !important;
        opacity: 1 !important;
    }
.auth-info-section h6 {
        margin-top: 0.5rem;
        color: #cbd5e1 !important;
        font-size: 0.94rem;
        font-weight: 400;
        line-height: 2.1;
        text-align: justify;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    }
.auth-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}
.auth-tabs .nav-link {
        padding: 0.55rem 0.85rem;
        color: var(--site-text-muted) !important;
        background: transparent !important;
        border: none !important;
        border-bottom: 2.5px solid transparent !important;
        font-size: 0.88rem;
        font-weight: 600;
        transition: color 0.2s ease, border-color 0.2s ease;
    }
.auth-tabs .nav-link:hover {
            color: var(--accent-light) !important;
        }
.auth-tabs .nav-link.active {
            color: var(--accent-light) !important;
            background: transparent !important;
            border-bottom: 2.5px solid var(--accent) !important;
            text-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
        }
/* =========================================================
   12. Services & Widgets
   ========================================================= */
.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 180, 255, 0.12);
    border: 1px solid rgba(0, 210, 255, 0.25);
    color: var(--accent-light);
    font-size: 1.5rem;
}
.service-box {
    background: rgba(13, 24, 44, 0.6);
    border: 1px solid rgba(0, 210, 255, 0.15);
    border-radius: 0.75rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-box:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 210, 255, 0.15);
        border-color: rgba(0, 210, 255, 0.4);
    }
@media (min-width: 1200px) {
    .col-xl-2-4 {
        flex: 0 0 auto;
        width: 20%;
    }
}
/* =========================================================
   13. SweetAlert2 Theme Sync
   ========================================================= */
div:where(.swal2-container) div:where(.swal2-popup) {
    width: 32em !important;
    max-width: 92vw !important;
    min-height: 23em !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.5em !important;
    border-radius: 1rem !important;
    background: rgba(10, 20, 36, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(0, 210, 255, 0.25) !important;
    color: #f8fafc !important;
    direction: rtl !important;
    text-align: center !important;
    font-family: inherit !important;
}
div:where(.swal2-container) .swal2-icon {
    width: 5em !important;
    height: 5em !important;
    margin: 0.5em auto 0.8em !important;
    box-sizing: content-box !important;
}
div:where(.swal2-container) .swal2-title {
    width: 100% !important;
    display: block !important;
    margin: 0 0 0.5em !important;
    padding: 0.2em 0.5em !important;
    color: #ffffff !important;
    font-size: 1.45em !important;
    font-weight: 700 !important;
}
div:where(.swal2-container) .swal2-html-container {
    width: 100% !important;
    margin: 0.2em 1em 1em !important;
    color: #cbd5e1 !important;
    font-size: 0.95rem !important;
    font-weight: normal !important;
    line-height: 1.8 !important;
}
div:where(.swal2-container) .swal2-actions {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    gap: 0.6em !important;
    margin: 0.5em auto 0 !important;
}
div:where(.swal2-container) button.swal2-styled {
    min-width: 6.5em !important;
    height: 38px !important;
    padding: 0 1.5em !important;
    border-radius: 0.45em !important;
    font-size: 0.9rem !important;
}
/* =========================================================
   14. Footer
   ========================================================= */
footer,
footer.footer {
    flex: 0 0 auto;
    position: relative !important;
    width: 100%;
    margin-top: auto;
    padding: 1rem 0 !important;
    background-color: rgba(4, 8, 16, 0.85) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 215, 0, 0.25) !important;
    color: var(--site-text-muted) !important;
    text-align: center;
    line-height: normal !important;
    z-index: 10;
}
footer a {
        color: var(--accent-light) !important;
        text-decoration: none;
        transition: color 0.2s ease;
    }
footer a:hover {
            color: #7dd3fc !important;
            text-decoration: underline;
        }
/* =========================================================
   15. Responsive & Mobile Rules
   ========================================================= */
@media (max-width: 991.98px) {
    /* Navbar Responsive */
    .navbar-nav {
        width: 100%;
        flex-direction: column;
        align-items: stretch !important;
        flex-wrap: nowrap;
        gap: 0.5rem;
        padding-top: 0.75rem;
    }

        .navbar-nav .nav-item {
            width: 100%;
        }

        .navbar-nav .navbar-action,
        .btn-minecraft-panel {
            width: 100%;
            min-height: 40px;
            justify-content: center;
        }

    /* Mobile Mega Menu */
    .navbar .dropdown-menu.mega-menu-custom {
        position: static !important;
        width: 100% !important;
        min-width: 100% !important;
        margin: 0.5rem 0 0 !important;
        padding: 0 !important;
    }

        .navbar .dropdown-menu.mega-menu-custom > .container {
            width: 100%;
            max-width: 100%;
            padding-left: 0;
            padding-right: 0;
        }

    .navbar .dropdown-menu .mega-row {
        padding: 1rem !important;
    }

    .navbar .dropdown-menu .mega-col {
        width: 100%;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
        border-left: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

        .navbar .dropdown-menu .mega-col:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: 0 !important;
        }

    .navbar .dropdown-menu h6,
    .navbar .dropdown-menu .dropdown-item {
        white-space: normal;
    }

    /* Mobile Sidebar */
    html.sidebar-state-collapsed .app-sidebar {
        margin-right: 0 !important;
    }

    .app-sidebar {
        position: fixed;
        top: 75px;
        right: 12px;
        bottom: 12px;
        width: min(var(--sidebar-width), calc(100vw - 24px));
        min-width: 0;
        max-width: none;
        height: auto;
        margin: 0 !important;
        overflow: hidden;
        z-index: 1040;
        border-radius: 16px;
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.7);
        transform: translateX(calc(100% + 30px));
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

        .app-sidebar > .sidebar-wrapper {
            height: 100% !important;
            min-height: 0;
            overflow: hidden;
        }

        .app-sidebar.sidebar-is-open {
            transform: translateX(0);
            opacity: 1 !important;
            visibility: visible !important;
            pointer-events: auto !important;
        }

    body.mobile-sidebar-is-open {
        overflow: hidden;
    }

        body.mobile-sidebar-is-open .sidebar-backdrop {
            display: block;
        }

    .main-content-wrapper {
        width: 100%;
        padding: 8px;
    }
}
@media (max-width: 575.98px) {
    .main-content-wrapper {
        padding: 6px;
    }

    footer,
    footer.footer {
        padding: 0.85rem 0 !important;
        font-size: 0.78rem;
    }
}
/* =========================================================
   Fix Bootstrap Modal Backdrop & Stacking Context
   ========================================================= */
/* رفع باگ عدم واکنش مدال وقتی والدش لایه تیره یا ترنسفورم دارد */


/* =========================================================
   لینک فعال منوی اصلی - LunarProCraft
   ========================================================= */

.navbar-main-menu .navbar-action.active {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.12);
}

    /* آیکون لینک فعال */
    .navbar-main-menu .navbar-action.active i {
        color: #38bdf8 !important;
    }

/* لینک فعال داخل منوی کشویی مدیریت */
.mega-menu-custom .dropdown-item.active {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.15) !important;
    border-right: 3px solid #38bdf8;
    font-weight: 700;
}

/* حالت هاور لینک‌های منوی اصلی */
.navbar-main-menu .navbar-action:hover {
    color: #7dd3fc;
}

/* لینک فعال صفحه اصلی */
.navbar-main-menu .navbar-action[aria-current="page"] {
    color: #38bdf8 !important;
}


/* =====================================================
           لینک فعال منوی اصلی
           ===================================================== */
.navbar-main-menu .navbar-action.active {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.12);
}

.navbar-main-menu .navbar-action.active i {
    color: #38bdf8 !important;
}

.navbar-main-menu .navbar-action:hover {
    color: #7dd3fc;
}

/* منوی مدیریت وقتی یکی از صفحات آن فعال است */

.navbar-main-menu .navbar-action.dropdown-toggle.active {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.4);
}

/* لینک فعال داخل منوی کشویی */

.mega-menu-custom .dropdown-item.active {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.15) !important;
    border-right: 3px solid #38bdf8;
    font-weight: 700;
}

/* وضعیت فعال در صفحه‌های کوچک */

@media (max-width: 991.98px) {
    #mainNavbar {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .navbar-main-menu {
        align-items: stretch;
    }

        .navbar-main-menu .nav-item {
            width: 100%;
        }

        .navbar-main-menu .navbar-action {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
        }

    .navbar-user-actions {
        width: 100%;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
}

/* دسکتاپ: بخش ورود و ثبت‌نام در سمت چپ */

@media (min-width: 992px) {
    .navbar-user-actions {
        margin-right: auto !important;
        margin-left: 0 !important;
    }
}


