﻿/* =========================================================
                       ساختار پایه (Base Grid)
                    ========================================================= */
.dashboard-container {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    direction: rtl;
    align-items: stretch;
    gap: 24px;
    width: 100%;
    min-height: calc(100vh - 85px);
    padding: 24px clamp(16px, 3.5vw, 44px);
    box-sizing: border-box;
}

.blur-content-side {
    grid-column: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* ستون خالی سمت چپ برای دیده‌شدن لوگوی اصلی سایت */
.dashboard-container::after {
    content: "";
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    pointer-events: none;
}

/* =========================================================
                       کارت‌های شیشه‌ای (Glassmorphism Pro)
                    ========================================================= */
.glass-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(12, 22, 45, 0.58) 0%, rgba(6, 13, 28, 0.42) 100%);
    backdrop-filter: blur(20px) saturate(190%);
    -webkit-backdrop-filter: blur(20px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

    .glass-card:hover {
        transform: translateY(-4px);
        border-color: rgba(245, 158, 11, 0.35);
        border-top-color: rgba(255, 255, 255, 0.4);
        box-shadow: 0 24px 50px rgba(0, 0, 0, 0.65), 0 0 30px rgba(245, 158, 11, 0.08);
    }

/* =========================================================
                       Hero Banner
                    ========================================================= */
.top-banner {
    min-height: 330px;
    padding: 28px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

    .top-banner::before {
        content: "";
        position: absolute;
        top: -100px;
        right: -80px;
        width: 320px;
        height: 320px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, transparent 70%);
        pointer-events: none;
        filter: blur(30px);
    }

    .top-banner::after {
        content: "";
        position: absolute;
        left: -80px;
        bottom: -80px;
        width: 280px;
        height: 280px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(56, 189, 248, 0.16) 0%, transparent 70%);
        pointer-events: none;
        filter: blur(30px);
    }

.hero-content {
    position: relative;
    z-index: 2;
    flex: 1 1 0;
    min-width: 0;
    max-width: 680px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 14px 5px 8px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 50px;
    margin-bottom: 18px;
}

.badge-icon-box {
    color: #f59e0b;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.badge-tag {
    color: #fde68a;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.hero-title {
    color: #ffffff;
    font-size: clamp(2rem, 3.4vw, 2.75rem);
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 10px;
}

    .hero-title span {
        background: linear-gradient(135deg, #fde68a 0%, #f59e0b 60%, #ea580c 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        filter: drop-shadow(0 2px 14px rgba(245, 158, 11, 0.3));
    }

.hero-subtitle {
    color: rgba(226, 232, 240, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 22px;
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-benefit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.82rem;
    color: #f1f5f9;
    backdrop-filter: blur(6px);
}

    .hero-benefit i {
        color: #38bdf8;
    }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-start-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    box-shadow: 0 10px 22px rgba(234, 88, 12, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.25s ease;
}

    .hero-start-btn:hover {
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 14px 28px rgba(234, 88, 12, 0.45);
    }

        .hero-start-btn:hover i.bi-arrow-left {
            transform: translateX(-4px);
        }

    .hero-start-btn i.bi-arrow-left {
        transition: transform 0.25s ease;
    }

.hero-tutorial-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #e2e8f0;
    box-shadow: none;
}

    .hero-tutorial-btn:hover {
        background: rgba(255, 255, 255, 0.12);
        color: #fbbf24;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

/* =========================================================
                       کارت‌های پایینی (Bottom Grid)
                    ========================================================= */
.bottom-grid {
    display: flex;
    gap: 22px;
    flex: 1;
}

.main-feature {
    flex: 1.35;
}

.side-feature {
    flex: 1;
}

.feature-card-content {
    padding: 26px 28px;
}

.feature-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.feature-icon-layers {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}

.feature-icon-server {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}

.feature-heading {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
    color: #f8fafc;
}

.feature-subheading {
    font-size: 0.75rem;
    color: rgba(203, 213, 225, 0.65);
}

.feature-label {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(241, 245, 249, 0.7);
}

.card-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    margin: 18px 0;
}

/* لیست امکانات */
.feature-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .feature-items-list li {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.85rem;
        color: #e2e8f0;
    }

        .feature-items-list li i.bi-check2-circle {
            color: #38bdf8;
            font-size: 1.1rem;
            flex-shrink: 0;
        }

.tech-tag {
    color: #fde68a;
    font-weight: 700;
    direction: ltr;
    display: inline-block;
    padding: 0 3px;
}

/* باکس آی‌پی سرور */
.server-ip-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 14px;
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.25s ease;
}

    .server-ip-box:hover {
        background: rgba(15, 23, 42, 0.85);
        border-color: #38bdf8;
        transform: translateY(-2px);
    }

.ip-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ip-title {
    font-size: 0.75rem;
    color: rgba(226, 232, 240, 0.6);
}

.ip-text {
    font-family: 'Consolas', 'Courier New', monospace;
    color: #38bdf8;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

.btn-copy {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

    .btn-copy:hover {
        background: #38bdf8;
        color: #0b1329;
    }

/* وضعیت‌ها و فوتر کارت‌ها */
.feature-card-footer {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-status, .feature-mini-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: rgba(203, 213, 225, 0.8);
}

.feature-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

    .status-indicator.online {
        background: #22c55e;
        box-shadow: 0 0 8px #22c55e;
    }

    .status-indicator.offline {
        background: #ef4444;
        box-shadow: 0 0 8px #ef4444;
    }

.feature-link {
    color: #f1f5f9;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

    .feature-link:hover {
        color: #fbbf24;
        background: rgba(255, 255, 255, 0.12);
    }

.ping-tag {
    font-size: 0.75rem;
}

/* =========================================================
                       اطلاعات برند داخل بنر اصلی
                    ========================================================= */
.brand-card {
    position: relative;
    isolation: isolate;
    flex: 0 0 190px;
    min-height: 255px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px 16px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-glow {
    position: absolute;
    z-index: -1;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
    filter: blur(25px);
    pointer-events: none;
}

.brand-logo-wrapper {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 88, 12, 0.2));
    border: 1px solid rgba(245, 158, 11, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    color: #fbbf24;
    margin-bottom: 12px;
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.25);
}

.brand-name {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 7px;
    letter-spacing: 0.2px;
}

.brand-version {
    color: #38bdf8;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(56, 189, 248, 0.1);
    padding: 3px 9px;
    border-radius: 30px;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.brand-divider {
    width: 46px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

.brand-stat-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 900;
    color: #10b981;
}

.stat-desc {
    font-size: 0.68rem;
    color: rgba(203, 213, 225, 0.7);
}

/* =========================================================
                       ریسپانسیو
                    ========================================================= */
@media (max-width: 1100px) {
    .dashboard-container {
        grid-template-columns: minmax(0, 1fr);
    }

        .dashboard-container::after {
            display: none;
        }

    .blur-content-side {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 16px 12px;
        gap: 16px;
    }

    .top-banner {
        padding: 24px 20px;
        flex-direction: column;
        align-items: stretch;
    }

    .brand-card {
        flex: 0 0 auto;
        min-height: 0;
        border-right: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        padding: 20px 12px 6px;
    }

    .brand-logo-wrapper {
        width: 54px;
        height: 54px;
        font-size: 1.6rem;
    }

    .brand-divider {
        margin: 12px 0;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .bottom-grid {
        flex-direction: column;
    }

    .hero-actions,
    .hero-start-btn {
        width: 100%;
        justify-content: center;
    }

    .feature-card-content {
        padding: 22px 18px;
    }

    .feature-card-top {
        flex-wrap: wrap;
    }

    .feature-label {
        margin-right: auto;
    }

    .server-ip-box {
        gap: 10px;
        padding: 10px 12px;
    }

    .ip-text {
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) and (max-width: 1250px) {
    .top-banner {
        padding: 26px 22px;
        gap: 16px;
    }

    .brand-card {
        flex-basis: 160px;
    }

    .hero-title {
        font-size: clamp(1.7rem, 2.6vw, 2.25rem);
    }

    .hero-benefit {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    .feature-card-content {
        padding: 22px 20px;
    }
}
/* فوتر اطلاعات سرور */
.server-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.server-metrics {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.server-metric {
    display: flex;
    align-items: center;
    gap: 10px;
}

.metric-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-size: 1rem;
}

.connection-icon {
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.players-icon {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.metric-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.metric-label {
    color: rgba(203, 213, 225, 0.65);
    font-size: 0.7rem;
    white-space: nowrap;
}

.metric-value {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #f8fafc;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.player-count-value {
    color: #38bdf8;
    direction: rtl;
    font-variant-numeric: tabular-nums;
}

.status-indicator {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    display: inline-block;
}

    .status-indicator.online {
        background: #22c55e;
        box-shadow: 0 0 9px rgba(34, 197, 94, 0.75);
    }

    .status-indicator.offline {
        background: #ef4444;
        box-shadow: 0 0 9px rgba(239, 68, 68, 0.65);
    }

    .status-indicator.checking {
        background: #fbbf24;
        box-shadow: 0 0 9px rgba(251, 191, 36, 0.55);
    }

.ping-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(203, 213, 225, 0.65);
    font-size: 0.72rem;
    white-space: nowrap;
}

    .ping-tag i {
        color: #38bdf8;
    }

@media (max-width: 480px) {
    .server-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .server-metrics {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .server-metric {
        gap: 7px;
    }

    .metric-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .metric-value {
        font-size: 0.75rem;
    }
}
/* چراغ وضعیت سرور */
.status-indicator.online {
    position: relative;
    isolation: isolate;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.9);
}

    /* حلقه موج‌دار سبز */
    .status-indicator.online::before {
        content: "";
        position: absolute;
        inset: -3px;
        border: 1px solid #22c55e;
        border-radius: 50%;
        animation: server-pulse 1.8s ease-out infinite;
        pointer-events: none;
    }

@keyframes server-pulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }

    100% {
        transform: scale(3.5);
        opacity: 0;
    }
}


