.holding-earnings {
    background: #0a0f0f;
    padding: 80px 0;
    color: #eee;
}

/* العنوان */
.earn-header {
    text-align: center;
    margin-bottom: 35px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.earn-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #d4af37;
    margin-bottom: 8px;
}

.earn-header p {
    font-size: 15px;
    color: #dcdcdc;
}

/* لوحة الـ KPI الأساسية */
.kpi-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto 40px;
}

.kpi-box {
    padding: 18px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 0 25px rgba(0,0,0,0.35);
    position: relative;
    overflow: hidden;
}

.kpi-box h3 {
    font-size: 14px;
    color: #f7f7f7;
    margin-bottom: 6px;
}

.kpi-box p {
    font-size: 18px;
    font-weight: 800;
}

/* ألوان الكروت */
.kpi-box.gold  { background: rgba(212,175,55,0.16); }
.kpi-box.green { background: rgba(20,120,70,0.45); }
.kpi-box.dark  { background: rgba(255,255,255,0.04); }

/* الكروت الجانبية */
.kpi-side {
    align-self: center;
}

/* الكرت الأوسط (ROI) */
.kpi-main {
    transform: translateY(-10px);
    box-shadow: 0 0 35px rgba(212,175,55,0.6);
}

.kpi-main p {
    font-size: 22px;
}

/* الكرت العريض أسفل الكل */
.kpi-wide {
    grid-column: 1 / 4;
    margin-top: 4px;
    font-size: 14px;
}

.kpi-wide p {
    font-size: 15px;
    line-height: 1.8;
}

/* الجدول */
.earn-table {
    background: rgba(255,255,255,0.03);
    padding: 25px;
    border-radius: 22px;
    border: 1px solid rgba(212,175,55,0.25);
    max-width: 1100px;
    margin: 0 auto;
}

.earn-table .row {
    display: grid;
grid-template-columns: repeat(7, 1fr);
    padding: 14px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 14px;
}

.row.head {
    font-weight: bold;
    color: #d4af37;
    font-size: 15px;
}

.row.highlight {
    background: rgba(212,175,55,0.15);
    font-weight: bold;
}

/* سياسة التوزيع */
.policy-box {
    margin-top: 25px;
    text-align: center;
    background: rgba(255,255,255,0.04);
    padding: 18px 25px;
    border-radius: 14px;
    border: 1px solid rgba(212,175,55,0.25);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-size: 14px;
    line-height: 1.9;
}

/* مؤشرات إضافية */
.kpi-cards.kpi-extra {
    margin-top: 30px;
    max-width: 1100px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.kpi-cards.kpi-extra .kpi-box h3 {
    font-size: 13px;
    margin-bottom: 8px;
}

.kpi-cards.kpi-extra .kpi-box p {
    font-size: 22px;
    font-weight: 900;
}

/* ========================================================= */
/*            ⭐ التعديل الجديد: جدولين جنب بعض ⭐           */
/* ========================================================= */

.earn-table-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    max-width: 1200px;
    margin: 40px auto;
}

.earn-table.small {
    padding: 18px;
    border-radius: 18px;
}

.earn-table.small .row div {
    font-size: 13px;
}

/* موبايل */
@media (max-width: 992px) {
    .kpi-cards {
        grid-template-columns: 1fr;
    }

    .kpi-main {
        transform: none;
    }

    .kpi-wide {
        grid-column: auto;
    }

    .earn-table .row {
        font-size: 13px;
    }

    .earn-table-grid {
        grid-template-columns: 1fr;
    }
}
/* إزالة التظليل الثابت بالكامل */
.row.highlight {
    background: none;
}

/* تظليل جميع الصفوف عند المرور */
.earn-table .row:hover {
    background: rgba(212,175,55,0.15);
    transition: 0.25s ease;
    cursor: pointer;
}
.earn-table .row.head div {
    white-space: nowrap;
}
.earn-table .row.head div {
    white-space: nowrap;      /* منع رجوع النص لسطر جديد */
    padding: 0 14px;          /* مسافة أفقية بين كل عنوان */
}
/* جعل الجدول في المنتصف */
.earn-table {
    margin-left: auto;
    margin-right: auto;
}

/* توزيع متساوٍ للأعمدة */
.earn-table .row {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 أعمدة متساوية */
    text-align: center;
}

/* ضبط العناوين فوق الأعمدة بدقة */
.earn-table .row.head div {
    white-space: nowrap;
    padding: 0 10px;  /* مسافة بسيطة بين العناوين */
    text-align: center;
}

/* ضبط كل خلية في البيانات تحت العنوان تمامًا */
.earn-table .row div {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
