.box-breadcrumb{
    background-color: #f4f4f4;
    padding: 20px 20px;
    margin-bottom: 15px;
}

.breadcrumb-item + .breadcrumb-item {
    padding-right: .5rem;
}
.breadcrumb-item + .breadcrumb-item::before {
    float: right;
    padding-left: .5rem;
    color: #6c757d;
    content: var(--bs-breadcrumb-divider, "/");
}



.ranking-section{
    padding: 50px 24px 34px;
    position: relative;
    overflow: hidden;
}

.trophy-badge{
    position: absolute;
    top: -6px;
    left: 24px;
    font-size: 58px;
    filter: drop-shadow(0 6px 12px rgba(255,190,0,.45));
}


.ranking-header {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    padding: 30px 20px;
    border-radius: 20px;
    margin-bottom: 60px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    text-align: center;
    font-size: 20px;
}

.ranking-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 10s infinite linear;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ranking-header h3 {
    color: white;
    margin: 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

/* ستون راست پر می‌شود، بعد ستون چپ (RTL) */
.ranking-grid{
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(var(--rows, 7), auto);
    gap: 14px 26px;
    direction: rtl;
}

.ranking-item{
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 14px;
    position: relative;
    color: #fff;
}

/* ==== رتبه‌های ۴ تا ۷ : نوار تیره کوچک ==== */
.tier-bar{
    background:#23232f;
    padding: 12px 20px;
    min-height: 56px;
}
.tier-bar .ranking-level{
    width:38px; height:38px;
    border-radius:50%;
    background:#34344a;
    display:flex; align-items:center; justify-content:center;
    font-weight:800; font-size:20px;
}
.tier-bar .ranking-participants{ flex:1; text-align:center; font-size:14px; font-weight:700; }
.tier-bar .ranking-points{ font-size:11px; color:#f2b90c; font-weight:600; white-space:nowrap; }

/* ==== رتبه‌های ۸ تا ۱۴ : کارت با بج شناور ==== */
.tier-card{
    background:#20202f;
    border:1px solid rgba(255,255,255,.06);
    padding: 16px 18px;
    min-height: 74px;
}
.tier-card .ranking-level{
    order: 1;
    width:44px; height:44px;
    border-radius:10px;
    background:#2c2c40;
    display:flex; align-items:center; justify-content:center;
    font-weight:800; font-size:22px;
    margin-top: 10px;
}
.tier-card .ranking-participants{
    flex:1; text-align:center; font-size:15px; font-weight:600; line-height:1.7; padding:0 8px;
}
.tier-card .ranking-points{
    position:absolute;
    top:-11px; left:14px;
    background:#35354c;
    padding: 4px 10px;
    border-radius:8px;
    font-size:13px;
    color:#f2b90c;
    font-weight:700;
}

/* ==== رتبه‌های ۱ تا ۳ : سکو (نوار بزرگ) ==== */
.tier-podium{
    padding: 18px 26px;
    border-radius:16px;
}
.tier-podium .ranking-level{
    width:54px; height:54px;
    border-radius:14px;
    background:rgba(0,0,0,.25);
    display:flex; align-items:center; justify-content:center;
    font-weight:900; font-size:32px;
}
.tier-podium .ranking-participants{ flex:1; text-align:center; font-size:20px; font-weight:800; }
.tier-podium .ranking-points{ font-size:13px; font-weight:700; opacity:.9; margin-top:2px; white-space:nowrap; }

.gold{ background: linear-gradient(135deg, #fdf3d3 0%, #f9d876 25%, #f5b942 55%, #f0a500 80%, #e89400 100%); color:#3a2600; }
.gold .ranking-level{ background: rgba(255,255,255,.35); color:#7a4b00; }

.silver{ background: linear-gradient(135deg,#d7dbe0,#9aa0a6); color:#20242a; }
.silver .ranking-level{ background: rgba(255,255,255,.35); color:#3a3d42; }

.bronze{ background: linear-gradient(135deg,#ffc580,#da7424); color:#3a1e00; }
.bronze .ranking-level{ background: rgba(255,255,255,.35); color:#5c3212; }

.ranking-points.highlight{ color: #2f2f2f;
    font-weight: 800;
    background-color: #fff;
    padding: 5px 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border-radius: 7px;
    border: 1px solid #ececec;}

.fl-main-container .fl-container.fl-flasher .fl-message, .fl-main-container .fl-container.fl-flasher .fl-title {
    display: block ruby !important;
}

/* ===== Bottom Mobile Navbar ===== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #dce0eb;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
    z-index: 9999;
}

.mobile-bottom-nav .nav-item {
    width: 25%;
    text-align: center;
    padding: 8px 0 6px;
    text-decoration: none;
    color: #777;
    font-size: 12px;
}

.mobile-bottom-nav .icon {
    width: 24px;
    height: 24px;
    display: block;
    margin: 0 auto 3px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-bottom-nav .nav-item.active {
    color: #fd562a;
}

.mobile-bottom-nav .nav-item.active .icon {
    stroke-width: 2.2;
}


.profile-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    height: 180px;
    border-radius: 0 0 25px 25px;
    position: relative;
}

.profile-avatar {
    width: 130px;
    height: 130px;
    border: 5px solid #fff;
    object-fit: cover;
}

.profile-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f3f5;
}

.info-item:last-child {
    border-bottom: none;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: #eef2ff;
    color: #4f46e5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.order-card {
    border: 1px solid #e9ecef;
    border-radius: 14px;
    transition: all 0.25s ease;
    background: #fff;
}

.order-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.badge-status {
    font-size: 0.78rem;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
}
.nav-pills .nav-link {
    border-radius: 12px;
    font-weight: 500;
    color: #6c757d;
    padding: 10px 20px;
}

.stat-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 14px 8px;
    text-align: center;
}

.stat-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4f46e5;
}

.stat-label {
    font-size: 0.8rem;
    color: #6c757d;
}

.orders-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-item {
    display: flex;
    align-items: stretch;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.order-item:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.08);
}

/* رنگ‌های یکی در میان */
.order-item:nth-child(odd) {
    background-color: #ffffff;
}

.order-item:nth-child(even) {
    background-color: #f8f9fa;
}

/* نوار رنگی سمت راست */
.order-item__status-bar {
    width: 6px;
    flex-shrink: 0;
}

.order-item--paid .order-item__status-bar {
    background: linear-gradient(180deg, #198754, #20c997);
}

.order-item--unpaid .order-item__status-bar {
    background: linear-gradient(180deg, #dc3545, #f87171);
}

/* بدنه اصلی */
.order-item__body {
    flex-grow: 1;
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

/* بخش سمت راست: سریال و تاریخ */
.order-item__meta {
    min-width: 180px;
    flex-shrink: 0;
}

.order-item__serial {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
    color: #212529;
}

.order-item__date {
    font-size: 12px;
    color: #6c757d;
}

/* بخش وسط: جزئیات (تایم‌ها و غذاها) */
.order-item__details {
    flex-grow: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.order-item__detail-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #495057;
}

.order-item__detail-row i {
    color: #0d6efd;
}

.order-item__detail-row.is-food i {
    color: #fd7e14;
}

/* بخش چپ: مبلغ و وضعیت */
.order-item__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 150px;
    flex-shrink: 0;
}

.order-item__amount {
    font-weight: 700;
    font-size: 15px;
    color: #0d6efd;
    white-space: nowrap;
}

/* بج وضعیت */
.order-item__badge {
    padding: 4px 12px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.order-item__badge--paid {
    background: #d1e7dd;
    color: #0f5132;
}

.order-item__badge--unpaid {
    background: #f8d7da;
    color: #842029;
}

/* حالت خالی */
.orders-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 14px;
    border: 2px dashed #dee2e6;
}

.orders-empty i {
    font-size: 48px;
    color: #adb5bd;
    display: block;
    margin-bottom: 12px;
}


.article-single table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    line-height: 1.5 !important;
    text-align: right;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.article-single table thead tr {
    background-color: #1e293b;
    color: #ffffff;
    font-weight: 600;
}

.article-single table th,
.article-single table td {
    padding: 12px 16px;
    vertical-align: middle;
}

.article-single table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.15s ease-in-out;
}

.article-single table tbody tr:hover {
    background-color: #f8fafc;
}

.article-single table tbody tr:nth-child(even) {
    background-color: #f1f5f9;
}

.article-single table tbody tr:last-child {
    border-bottom: none;
}


/* ریسپانسیو */
@media (max-width: 768px) {
    .home-main{
        margin-bottom: 3rem !important;
    }
    .order-item__body {
        flex-direction: column;
        align-items: flex-start;
    }
    .order-item__side {
        width: 100%;
        justify-content: space-between;
        align-items: unset;
        flex-direction: unset;
    }
}
.account-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 16px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.account-summary::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.account-summary::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.account-summary--danger {
    background: linear-gradient(135deg, #dc3545, #f87171);
}

.account-summary--warning {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.account-summary--success {
    background: linear-gradient(135deg, #198754, #20c997);
}

.account-summary__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.account-summary__text {
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.account-summary__label {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 4px;
}

.account-summary__amount {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.account-summary__amount small {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
    margin-right: 4px;
}

.account-summary__stats {
    display: flex;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.account-summary__stat {
    text-align: center;
}

.account-summary__stat-value {
    font-size: 18px;
    font-weight: 700;
}

.account-summary__stat-label {
    font-size: 11px;
    opacity: 0.85;
}

@media (max-width: 768px){
    .account-summary {
        flex-wrap: wrap;
    }
    .account-summary__stats {
        width: 100%;
        justify-content: space-around;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding-top: 12px;
        margin-top: 4px;
    }
    .mobile-bottom-nav {
        display: flex;
    }

    .profile-avatar {
        width: 105px;
        height: 105px;
    }
    .profile-header {
        height: 150px;
    }
    .stat-number {
        font-size: 1.15rem;
    }
    .ranking-grid{
        grid-auto-flow: row;
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }
    .trophy-badge{ font-size:42px; left:12px; }
}
