/* Taj Alwuqar — مؤشر عقاري */
*, *::before, *::after { box-sizing: border-box; }

body.mindex-page {
    margin: 0;
    font-family: Cairo, system-ui, sans-serif;
    color: #0c1220;
    min-height: 100vh;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(201, 162, 77, 0.18), transparent 55%),
        radial-gradient(900px 500px at 100% 20%, rgba(59, 130, 246, 0.06), transparent 50%),
        linear-gradient(180deg, #f6f8fc 0%, #eef2f8 45%, #e8ecf4 100%);
}

.mindex-shell {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 18px 56px;
}

.mindex-hero {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    padding: clamp(36px, 5vw, 52px) clamp(24px, 4vw, 40px);
    background: linear-gradient(135deg, #071225 0%, #0f2744 38%, #15365a 100%);
    color: #fff;
    box-shadow: 0 28px 70px rgba(6, 12, 28, 0.45);
    text-align: center;
    margin-bottom: 24px;
}

.mindex-hero::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto -20%;
    height: 120%;
    background: radial-gradient(ellipse 70% 55% at 70% 0%, rgba(201, 162, 77, 0.28), transparent 60%);
    pointer-events: none;
}

.mindex-hero__inner { position: relative; z-index: 1; }

.mindex-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(201, 162, 77, 0.35);
    color: #f5e6b8;
    margin-bottom: 16px;
}

.mindex-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(1.65rem, 4.5vw, 2.35rem);
    font-weight: 900;
    line-height: 1.25;
}

.mindex-lead {
    margin: 0 auto 20px;
    max-width: 640px;
    font-size: 1.02rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
}

.mindex-disclaimer {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    text-align: right;
    max-width: 620px;
    margin: 0 auto;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(201, 162, 77, 0.12);
    border: 1px solid rgba(201, 162, 77, 0.35);
    font-size: 0.9rem;
    color: #fceea3;
    line-height: 1.6;
}

.mindex-disclaimer i { margin-top: 3px; flex-shrink: 0; }

.mindex-section {
    background: #fff;
    border-radius: 22px;
    padding: clamp(20px, 3vw, 28px);
    margin-bottom: 22px;
    border: 1px solid rgba(12, 18, 32, 0.06);
    box-shadow: 0 14px 40px rgba(12, 24, 48, 0.06);
}

.mindex-section__head {
    margin-bottom: 20px;
}

.mindex-section__head h2 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f2744;
}

.mindex-section__head p {
    margin: 0;
    font-size: 0.92rem;
    color: #5a6478;
    line-height: 1.6;
}

.mindex-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.mindex-filter-btn {
    border: 1px solid rgba(15, 39, 68, 0.12);
    background: #f4f6fa;
    color: #0f2744;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.mindex-filter-btn.is-active {
    background: linear-gradient(165deg, #0f2744, #15365a);
    color: #fceea3;
    border-color: rgba(201, 162, 77, 0.45);
}

.mindex-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mindex-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    min-width: 640px;
}

.mindex-table th,
.mindex-table td {
    padding: 12px 14px;
    text-align: right;
    border-bottom: 1px solid rgba(12, 18, 32, 0.07);
}

.mindex-table th {
    font-weight: 800;
    color: #0f2744;
    background: #f7f9fc;
    white-space: nowrap;
}

.mindex-table tbody tr:hover {
    background: rgba(201, 162, 77, 0.06);
}

.mindex-table td.num {
    font-variant-numeric: tabular-nums;
    direction: ltr;
    text-align: left;
}

.mindex-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.mindex-stat-card {
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(145deg, #f8fafc, #fff);
    border: 1px solid rgba(12, 18, 32, 0.06);
}

.mindex-stat-card__label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #5a6478;
    margin-bottom: 6px;
}

.mindex-stat-card__value {
    font-size: 1.15rem;
    font-weight: 900;
    color: #0f2744;
}

.mindex-stat-card__meta {
    margin-top: 6px;
    font-size: 0.78rem;
    color: #8b95a8;
}

.mindex-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}

@media (max-width: 640px) {
    .mindex-compare-grid { grid-template-columns: 1fr; }
}

.mindex-field label {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 8px;
    color: #0f2744;
}

.mindex-field select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(15, 39, 68, 0.15);
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
}

.mindex-compare-result {
    padding: 18px;
    border-radius: 16px;
    background: #f7f9fc;
    border: 1px solid rgba(12, 18, 32, 0.06);
    line-height: 1.75;
    font-size: 0.92rem;
}

.mindex-compare-result strong { color: #0f2744; }

.mindex-empty,
.mindex-error {
    text-align: center;
    padding: 32px 20px;
    border-radius: 16px;
    background: #f7f9fc;
    border: 1px dashed rgba(15, 39, 68, 0.15);
    color: #5a6478;
    line-height: 1.7;
}

.mindex-error {
    background: #fef2f2;
    border-color: rgba(185, 28, 28, 0.2);
    color: #991b1b;
}

.mindex-skeleton {
    animation: mindex-pulse 1.4s ease-in-out infinite;
}

.mindex-skeleton__row {
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(90deg, #eef1f6 25%, #f8fafc 50%, #eef1f6 75%);
    background-size: 200% 100%;
    margin-bottom: 10px;
}

@keyframes mindex-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.mindex-faq {
    margin-top: 32px;
}

.mindex-faq h2 {
    font-size: 1.35rem;
    font-weight: 900;
    color: #0f2744;
    margin: 0 0 20px;
    text-align: center;
}

.mindex-faq-item {
    padding: 18px 0;
    border-bottom: 1px solid rgba(12, 18, 32, 0.08);
}

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

.mindex-faq-item h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 800;
    color: #0f2744;
}

.mindex-faq-item p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.75;
    color: #4a5568;
}

.mindex-footer {
    text-align: center;
    margin-top: 36px;
    font-size: 0.85rem;
    color: #8b95a8;
}

html[dir="ltr"] .mindex-table th,
html[dir="ltr"] .mindex-table td {
    text-align: left;
}

html[dir="ltr"] .mindex-table td.num {
    text-align: right;
}

.mindex-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(201, 162, 77, 0.15);
    color: #8a6d2b;
}

.mindex-opportunity {
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(201, 162, 77, 0.25);
    background: rgba(201, 162, 77, 0.06);
}

.mindex-opportunity h4 {
    margin: 0 0 8px;
    font-size: 0.95rem;
    color: #0f2744;
}

.mindex-opportunity p {
    margin: 0;
    font-size: 0.85rem;
    color: #5a6478;
    line-height: 1.6;
}
