/* =============================================
   🧩 سيكشن أنواع المساهمين – Matrix من 4 فئات
============================================= */

.shareholder-tiers {
    padding: 90px 0;
    background: #f4f5f7;
}

/* توسيع مساحة السيكشن فقط */
.shareholder-tiers .container {
    width: 96%;
    max-width: 1450px;
    margin-left: auto;
    margin-right: auto;
}

/* عنوان القسم */
.tiers-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 42px;
    padding: 0 20px;
}

.tiers-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 14px;
    line-height: 1.45;
}

.tiers-header p {
    font-size: 16px;
    color: #475569;
    line-height: 2;
    margin: 0;
}

/* Wrapper */
.tiers-wrapper {
    width: 100%;
    overflow: visible;
    padding: 4px 0 14px;
}

/* صندوق الجدول */
.tiers-table {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;

    background: #ffffff;
    border-radius: 24px;
    padding: 18px;

    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);

    overflow: hidden;
}

/* الصفوف */
.tiers-row {
    display: grid;

    /*
       العمود الأول للعناوين
       + أربع فئات تتوزع تلقائياً داخل المساحة
    */
    grid-template-columns: 165px repeat(4, minmax(0, 1fr));

    width: 100%;
    align-items: stretch;

    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.tiers-row:last-child {
    border-bottom: none;
}

/* رأس الجدول */
.tiers-row-head {
    background: #f8fafc;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
}

.tiers-row-head .tiers-cell {
    min-height: 220px;
}

/* الخلايا العامة */
.tiers-cell {
    min-width: 0;
    box-sizing: border-box;

    padding: 18px 14px;

    font-size: 14px;
    color: #334155;
    line-height: 1.8;

    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border-left: 1px solid rgba(226, 232, 240, 0.9);

    overflow-wrap: anywhere;
}

.tiers-cell:last-child {
    border-left: none;
}

/* أول عمود */
.tiers-cell-label {
    font-weight: 800;
    font-size: 14px;
    color: #0f172a;
    background: #f1f5f9;
    text-align: center;
}

/* أعمدة الفئات */
.tiers-cell-col {
    text-align: center;
}

.tiers-cell-col h3 {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;

    margin: 10px 0 7px;

    line-height: 1.5;
}

.tiers-cell-col p {
    font-size: 13.5px;
    color: #64748b;

    line-height: 1.8;

    margin: 0;
}

/* خلية الصورة */
.tiers-icon-cell {
    padding: 18px;
    background: #f8fafc;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* حجم الصورة */
.tiers-icon-cell img {
    display: block;

    width: 115px;
    height: 115px;

    max-width: 100%;
    max-height: 115px;

    object-fit: contain;
}

/* البادجات */
.tier-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 32px;
    padding: 6px 14px;

    border-radius: 999px;

    font-size: 12.5px;
    font-weight: 800;
    color: #ffffff;

    margin-bottom: 5px;

    white-space: nowrap;
}

.tier-badge.gold {
    background: linear-gradient(135deg, #d9b36a, #c58a2d);
}

.tier-badge.silver {
    background: linear-gradient(135deg, #c0c7d1, #8e96a3);
}

.tier-badge.bronze {
    background: linear-gradient(135deg, #c78b5a, #a56a3c);
}

.tier-badge.seasonal {
    background: linear-gradient(135deg, #22c55e, #15803d);
}

/* صفوف البيانات */
.tiers-row:not(.tiers-row-head) {
    min-height: 92px;
}

.tiers-row:not(.tiers-row-head) .tiers-cell {
    font-size: 13.5px;
}

/* تناوب بسيط */
.tiers-row:nth-child(odd):not(.tiers-row-head) {
    background: #fafbfc;
}

/* Hover */
.tiers-row:not(.tiers-row-head):hover {
    background: #f8fafc;
}

/* =============================================
   Desktop أصغر
============================================= */

@media (max-width: 1200px) {

    .shareholder-tiers {
        padding: 75px 0;
    }

    .shareholder-tiers .container {
        width: 97%;
    }

    .tiers-row {
        grid-template-columns: 145px repeat(4, minmax(0, 1fr));
    }

    .tiers-cell {
        padding: 16px 11px;
    }

    .tiers-cell-col h3 {
        font-size: 16px;
    }

    .tiers-cell-col p {
        font-size: 12.5px;
    }
}

/* =============================================
   Tablet
============================================= */

@media (max-width: 992px) {

    .shareholder-tiers .container {
        width: 98%;
    }

    .tiers-table {
        padding: 12px;
    }

    .tiers-row {
        grid-template-columns: 125px repeat(4, minmax(0, 1fr));
    }

    .tiers-cell {
        padding: 13px 8px;
        font-size: 12px;
        line-height: 1.65;
    }

    .tiers-row-head .tiers-cell {
        min-height: 200px;
    }

    .tiers-icon-cell img {
        width: 85px;
        height: 85px;
        max-height: 85px;
    }

    .tiers-cell-col h3 {
        font-size: 14px;
    }

    .tiers-cell-col p {
        font-size: 11px;
    }

    .tier-badge {
        font-size: 10.5px;
        padding: 5px 9px;
    }
}

/* =============================================
   Mobile
============================================= */

@media (max-width: 768px) {

    .shareholder-tiers {
        padding: 55px 0;
    }

    .shareholder-tiers .container {
        width: 100%;
        padding-left: 8px;
        padding-right: 8px;
        box-sizing: border-box;
    }

    .tiers-header {
        margin-bottom: 30px;
        padding: 0 16px;
    }

    .tiers-header h2 {
        font-size: 25px;
    }

    .tiers-header p {
        font-size: 14px;
        line-height: 1.9;
    }

    .tiers-table {
        width: 100%;
        min-width: 0;

        padding: 8px;

        border-radius: 18px;
    }

    .tiers-row {
        width: 100%;
        min-width: 0;

        grid-template-columns: 95px repeat(4, minmax(0, 1fr));
    }

    .tiers-cell {
        padding: 10px 5px;

        font-size: 10.5px;
        line-height: 1.55;
    }

    .tiers-cell-label {
        font-size: 10.5px;
    }

    .tiers-row-head .tiers-cell {
        min-height: 180px;
    }

    .tiers-icon-cell {
        padding: 8px;
    }

    .tiers-icon-cell img {
        width: 60px;
        height: 60px;
        max-height: 60px;
    }

    .tiers-cell-col h3 {
        font-size: 11.5px;

        margin: 6px 0 4px;
    }

    .tiers-cell-col p {
        font-size: 9.5px;
        line-height: 1.55;
    }

    .tier-badge {
        min-height: 24px;

        font-size: 8.5px;

        padding: 4px 6px;

        white-space: normal;
    }
}

/* =============================================
   Small Mobile
============================================= */

@media (max-width: 480px) {

    .tiers-header h2 {
        font-size: 22px;
    }

    .tiers-table {
        padding: 5px;
    }

    .tiers-row {
        grid-template-columns: 78px repeat(4, minmax(0, 1fr));
    }

    .tiers-cell {
        padding: 8px 3px;

        font-size: 9px;
    }

    .tiers-cell-label {
        font-size: 9px;
    }

    .tiers-row-head .tiers-cell {
        min-height: 165px;
    }

    .tiers-icon-cell img {
        width: 48px;
        height: 48px;
        max-height: 48px;
    }

    .tiers-cell-col h3 {
        font-size: 10px;
    }

    .tiers-cell-col p {
        font-size: 8.5px;
    }

    .tier-badge {
        font-size: 7.5px;
        padding: 3px 4px;
    }
}