/* ==============================================
   Bottom Navigation Bar (Mobile & Tablet)
   ============================================== */

/* فقط زمانی که عرض صفحه کمتر از 992px باشه */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 80px;
    }

    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1050;
        background-color: rgba(31, 27, 45, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 -0.25rem 0.75rem rgba(0, 0, 0, 0.15);
        padding: 0.5rem 0.75rem 0.75rem;
    }

    .bottom-nav-container {
        display: flex;
        align-items: center;
        justify-content: space-around;
        max-width: 500px;
        margin: 0 auto;
        gap: 0.25rem;
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #9691a4;
        transition: all 0.2s ease-in-out;
        padding: 0.25rem 0.5rem;
        border-radius: 0.5rem;
        min-width: 64px;
        position: relative;
        cursor: pointer;
    }

    .bottom-nav-item i {
        font-size: 1.5rem;
        margin-bottom: 0.2rem;
        transition: transform 0.2s ease;
    }

    .bottom-nav-label {
        font-size: 0.7rem;
        font-weight: 500;
        transition: color 0.2s ease;
    }

    .bottom-nav-item:hover,
    .bottom-nav-item.active {
        color: #fd5631;
        background-color: rgba(253, 86, 49, 0.1);
    }

    .bottom-nav-item:hover i {
        transform: translateY(-2px);
    }

    /* دکمه وسط */
    .bottom-nav-center {
        position: relative;
        top: -10px;
    }

    .bottom-nav-center-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 56px;
        height: 56px;
        background: linear-gradient(26.21deg, #5d3cf2 0%, #fd5631 108.88%);
        border-radius: 50%;
        margin-bottom: 0.2rem;
        transition: all 0.2s ease-in-out;
        box-shadow: 0 0.25rem 0.75rem rgba(253, 86, 49, 0.3);
        border: 2px solid rgba(255, 255, 255, 0.2);
    }

    .bottom-nav-center-icon i {
        font-size: 1.75rem;
        margin-bottom: 0;
        color: white;
    }

    .bottom-nav-center .bottom-nav-label {
        font-size: 0.7rem;
        font-weight: 600;
        margin-top: 0.25rem;
        color: #fd5631;
    }

    .bottom-nav-center:hover .bottom-nav-center-icon {
        transform: scale(1.05);
        box-shadow: 0 0.375rem 1rem rgba(253, 86, 49, 0.4);
    }

    .bottom-nav-center:hover i {
        transform: none;
    }

    .bottom-nav-item:active {
        transform: scale(0.95);
    }

    .page-wrapper{
        padding-bottom: 7.5rem !important;

    }
}

/* ==============================================
   Bottom Sheet Modal - Financial Panel
   ============================================== */

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    visibility: hidden;
    transition: visibility 0.3s ease-in-out;
}

.bottom-sheet.open {
    visibility: visible;
}

.bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.bottom-sheet.open .bottom-sheet-overlay {
    opacity: 1;
}

.bottom-sheet-content {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1f1b2d 0%, #2a2538 100%);
    border-radius: 1.5rem 1.5rem 0 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 -0.5rem 2rem rgba(0, 0, 0, 0.3);
}

.bottom-sheet.open .bottom-sheet-content {
    transform: translateY(0);
}

.bottom-sheet-header {
    position: relative;
    padding: 1rem 1.5rem 0.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drag-handle {
    width: 40px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin: 0 auto 1rem;
    cursor: grab;
}

.drag-handle:active {
    cursor: grabbing;
}

.btn-close-bottom-sheet {
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.25rem;
    line-height: 1;
}

.btn-close-bottom-sheet:hover {
    color: #fd5631;
    transform: scale(1.1);
}

.bottom-sheet-body {
    padding: 1.5rem;
}

.balance-card {
    background: linear-gradient(135deg, rgba(253, 86, 49, 0.15) 0%, rgba(93, 60, 242, 0.15) 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.balance-label {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fd5631;
    font-family: "vazir-bold", sans-serif;
}

.currency {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    margin-right: 0.25rem;
}

.financial-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.financial-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.financial-option:hover {
    background-color: rgba(253, 86, 49, 0.1);
    border-color: rgba(253, 86, 49, 0.3);
    transform: translateX(-4px);
}

.option-info {
    flex: 1;
    text-align: right;
}

.option-title {
    display: block;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
    font-family: "vazir-bold", sans-serif;
}

.option-desc {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.option-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.financial-option:hover .option-arrow {
    transform: translateX(-4px);
    color: #fd5631;
}

.bottom-sheet-content::-webkit-scrollbar {
    width: 4px;
}

.bottom-sheet-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.bottom-sheet-content::-webkit-scrollbar-thumb {
    background: #fd5631;
    border-radius: 2px;
}

/* اگر می‌خوای فقط آیکون‌های خاصی بزرگتر بشه، می‌تونی از کلاس زیر استفاده کنی */
.bottom-nav-item i.bi,
.bottom-nav-item i.fi {
    font-size: 1.75rem;
}

/* برای دکمه وسط (ساخت تبلیغ) که آیکون داخل دایره هست */
.bottom-nav-center-icon i.bi {
    font-size: 2.5rem;
}

/* آیکون‌های داخل شیت مالی */
.financial-option .option-icon i.bi {
    font-size: 1.5rem;
}


/* ==========================================================================
   استایل‌های اختصاصی فوتر کاربران مهمان (تم دارک و خارق‌العاده شیک)
   ========================================================================== */

/* ریشه اصلی فوتر با گرادینت تیره و عمیق هماهنگ با بوت‌استرپ تم */
.footer-guest-wrapper {
    background: linear-gradient(180deg, #1f1b2d 0%, #151221 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    direction: rtl;
}

/* رنگ اکسنت اصلی پلتفرم */
.accent-color {
    color: #fd5631;
}

/* استایل کارد فراخوان به عمل (CTA) بالایی */
.cta-gradient-card {
    background: linear-gradient(135deg, rgba(31, 27, 45, 0.9) 0%, rgba(21, 18, 33, 0.95) 100%);
    border: 1px solid rgba(253, 86, 49, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.max-width-600 {
    max-width: 600px;
}

/* دکمه‌های شیک لندینگ */
.btn-gradient-primary {
    background: linear-gradient(90deg, #fd5631 0%, #ff7354 100%);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(253, 86, 49, 0.3);
    transition: all 0.3s ease;
}

.btn-gradient-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 86, 49, 0.45);
}

.btn-outline-light-custom {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff !important;
    transition: all 0.3s ease;
}

.btn-outline-light-custom:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fd5631;
    transform: translateY(-2px);
}

/* کره‌های نوری پس‌زمینه کارد */
.glow-sphere-1 {
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(253, 86, 49, 0.15);
    filter: blur(50px);
    border-radius: 50%;
    top: -50px;
    right: -20px;
    z-index: 1;
}

.glow-sphere-2 {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(106, 44, 112, 0.12);
    filter: blur(60px);
    border-radius: 50%;
    bottom: -80px;
    left: -30px;
    z-index: 1;
}

/* آیکون‌های اجتماعی نئونی */
.social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.7) !important;
    border-radius: 10px;
    font-size: 1.1rem;
    transition: all 0.25s ease;
}

.social-icon-btn:hover {
    background: rgba(253, 86, 49, 0.1);
    border-color: #fd5631;
    color: #fd5631 !important;
    box-shadow: 0 0 12px rgba(253, 86, 49, 0.25);
    transform: translateY(-3px);
}

/* خط تزیینی زیر هدر ستون‌ها */
.footer-heading-line::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 0;
    width: 30px;
    height: 2px;
    background-color: #fd5631;
    border-radius: 2px;
}

/* لیست لینک‌های فوتر */
.footer-links-list li {
    margin-bottom: 0.75rem;
}

.footer-links-list li a {
    color: rgba(255, 255, 255, 0.55) !important;
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.footer-links-list li a i {
    font-size: 0.65rem;
    margin-left: 6px;
    color: rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease;
}

.footer-links-list li a:hover {
    color: #fd5631 !important;
    padding-right: 4px;
}

.footer-links-list li a:hover i {
    color: #fd5631;
    transform: translateX(-2px);
}

/* بج‌های پلتفرم‌ها */
.platform-badge {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.65);
    border-radius: 6px;
    font-size: 0.75rem;
}

/* شبیه‌ساز کارت‌های نماد الکترونیکی شیشه‌ای (Glassmorphism) */
.trust-badge-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.trust-badge-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.badge-placeholder {
    color: rgba(255, 255, 255, 0.25);
    transition: color 0.3s ease;
}

.trust-badge-card:hover .badge-placeholder {
    color: #fd5631;
}

/* لینک‌های قانونی کپی‌رایت */
.footer-legal-links a {
    color: rgba(255, 255, 255, 0.4) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: #fd5631 !important;
}

.fs-xs {
    font-size: 0.75rem;
}
.z-index-2 {
    z-index: 2;
}