.fx-dashboard-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:22px;
}

.fx-dashboard-header h2{
    margin:0;
    font-size:26px;
    font-weight:900;
}

.fx-dashboard-header p{
    margin:6px 0 0;
    color:#64748b;
}

.fx-dashboard-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.fx-dash-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:22px;
    box-shadow:0 6px 18px rgba(15,23,42,.05);
    margin-bottom:18px;
}

.fx-dash-card h3{
    margin:0 0 18px;
    font-size:18px;
    font-weight:900;
}

/* ===== Task Grid ===== */

.fx-task-section{
    border-top:1px solid #e5e7eb;
    padding-top:16px;
    margin-top:16px;
}

.fx-task-section:first-of-type{
    border-top:0;
    padding-top:0;
}

.fx-task-section h4{
    margin:0 0 14px;
    color:#64748b;
    font-size:15px;
}

.fx-task-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
}

.fx-task-item{
    border-right:1px solid #e5e7eb;
    min-height:58px;
}

.fx-task-item:nth-child(4n){
    border-right:0;
}

.fx-task-item strong{
    display:block;
    font-size:24px;
    color:#111827;
    margin-bottom:6px;
}

.fx-task-item span{
    font-size:13px;
    color:#334155;
}

.fx-dot{
    width:6px;
    height:6px;
    border-radius:50%;
    display:inline-block;
    margin-right:6px;
    vertical-align:middle;
}

.fx-dot-green{
    background:#22c55e;
}

.fx-dot-orange{
    background:#f59e0b;
}

.fx-dot-red{
    background:#ef4444;
}

/* ===== Responsive ===== */

@media(max-width:980px){

    .fx-task-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .fx-task-item:nth-child(2n){
        border-right:0;
    }

}

@media(max-width:560px){

    .fx-task-grid{
        grid-template-columns:1fr;
    }

    .fx-task-item{
        border-right:0;
        border-bottom:1px solid #e5e7eb;
        padding-bottom:10px;
    }

}


/* ==========================================================
   SALES / CHARTS
   ========================================================== */

.fx-dashboard-layout{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:18px;
}

.fx-tabs{
    display:flex;
    gap:28px;
    border-bottom:1px solid #e5e7eb;
    margin:-4px 0 22px;
}

.fx-tabs a{
    padding:0 0 12px;
    color:#334155;
    text-decoration:none;
    font-weight:700;
    font-size:14px;
}

.fx-tabs a.active{
    color:#2563eb;
    border-bottom:2px solid #2563eb;
}

.fx-sales-head{
    display:flex;
    align-items:flex-start;
    gap:38px;
    margin-bottom:24px;
}

.fx-sales-head strong{
    display:block;
    font-size:28px;
    color:#111827;
}

.fx-sales-head span{
    color:#64748b;
    font-size:13px;
}

.fx-sales-buttons{
    margin-left:auto;
    display:flex;
    gap:8px;
}

.fx-chart{
    height:260px;
    border-bottom:1px solid #cbd5e1;
    border-left:1px solid #e5e7eb;
    display:flex;
    align-items:end;
    gap:10px;
    padding:18px 20px 0;
    background:linear-gradient(to top,#fff,#fff 48%,#f8fafc 49%,#fff 50%);
}

.fx-chart-bar{
    flex:1;
    background:#34d399;
    border-radius:4px 4px 0 0;
    min-width:8px;
}

.fx-chart-legend{
    display:flex;
    justify-content:center;
    gap:24px;
    margin-top:14px;
    font-size:13px;
    color:#475569;
}

.fx-line-blue,
.fx-line-green{
    display:inline-block;
    width:22px;
    height:3px;
    border-radius:999px;
    margin-right:6px;
    vertical-align:middle;
}

.fx-line-blue{
    background:#2563eb;
}

.fx-line-green{
    background:#34d399;
}

.fx-summary-card{
    align-self:start;
}

.fx-summary-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:14px;
    padding:14px 0;
    border-bottom:1px solid #f1f5f9;
}

.fx-summary-item span{
    color:#475569;
    font-size:14px;
}

.fx-summary-item strong{
    color:#111827;
}

@media(max-width:980px){

    .fx-dashboard-layout{
        grid-template-columns:1fr;
    }

    .fx-sales-head{
        flex-direction:column;
        gap:12px;
    }

    .fx-sales-buttons{
        margin-left:0;
    }

}


/* ==========================================================
   MARKETPLACE CARDS
   ========================================================== */

.fx-marketplace-cards{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
    margin-bottom:18px;
}

.fx-market-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:20px;
    box-shadow:0 6px 18px rgba(15,23,42,.05);
}

.fx-market-card h3{
    margin:0 0 16px;
}

.fx-market-row{
    display:flex;
    justify-content:space-between;
    margin-bottom:10px;
}

.fx-market-row span{
    color:#64748b;
    font-size:13px;
}

.fx-market-status{
    margin-top:18px;
    padding-top:14px;
    border-top:1px solid #f1f5f9;
    font-weight:800;
    font-size:13px;
}

.fx-market-status.green{
    color:#16a34a;
}

.fx-market-status.red{
    color:#dc2626;
}

/* ==========================================================
   CARD TITLE ROW
   ========================================================== */

.fx-card-title-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-bottom:14px;
}

.fx-card-title-row h3{
    margin:0;
}

.fx-card-title-row a{
    font-weight:800;
    color:#2563eb;
    text-decoration:none;
    font-size:13px;
}

/* ==========================================================
   MINI TABLE
   ========================================================== */

.fx-mini-table{
    width:100%;
    border-collapse:collapse;
}

.fx-mini-table th{
    text-align:left;
    color:#64748b;
    font-size:12px;
    padding:10px;
    background:#f8fafc;
}

.fx-mini-table td{
    border-bottom:1px solid #f1f5f9;
    padding:12px 10px;
    font-size:13px;
}

.fx-mini-table strong{
    color:#111827;
}

.fx-mini-table small{
    color:#64748b;
}

.fx-mini-table .red{
    color:#dc2626;
    font-weight:900;
}

@media(max-width:980px){

    .fx-dashboard-layout,
    .fx-marketplace-cards{
        grid-template-columns:1fr;
    }

}

