.idex-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}

.idex-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.idex-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
}

.idex-modal__panel {
    position: relative;
    background: #e8e8e8;
    border-radius: 12px;
    width: min(92vw, 860px);
    max-height: 85vh;
    overflow: hidden;
}

.idex-modal__close {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 2;
    background: none;
    border: none;
    color: #1d1d20;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.idex-modal__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 480px;
}

.idex-modal__left {
    position: relative;
    padding: 48px 40px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.idex-modal__left-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(0, 0, 0, .06) 1px, transparent 1px),
        linear-gradient(rgba(0, 0, 0, .06) 1px, transparent 1px),
        linear-gradient(135deg, transparent calc(50% - 1px), rgba(0, 0, 0, .06) 50%, transparent calc(50% + 1px));
    background-size: 160px 160px, 160px 160px, 100% 100%;
}

.idex-modal__left-content {
    position: relative;
    z-index: 1;
}

.idex-modal__title {
    margin: 0 0 16px;
    color: #0080ff;
    font-size: 42px;
    font-weight: 300;
    line-height: 1.05;
}

.idex-modal__description {
    margin: 0;
    color: #1d1d20;
    opacity: .55;
    font-size: 15px;
    line-height: 20px;
    max-width: 320px;
}

.idex-modal__right {
    padding: 48px 40px;
    overflow-y: auto;
    max-height: 85vh;
}

/* Conteúdo genérico do lado direito */
.idex-modal__grupo {
    margin-bottom: 20px;
}

.idex-modal__grupo:last-child {
    margin-bottom: 0;
}

.idex-modal__familia {
    margin: 0 0 8px;
    color: #0080ff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.idex-modal__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 4px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 8px;
    text-decoration: none;
    color: #1d1d20;
    font-size: 15px;
    font-weight: 500;
    transition: background .15s;
}

.idex-modal__item:hover {
    background: #f4f4f4;
}

.idex-modal__item-badge {
    color: #0080ff;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .idex-modal__panel {
        width: 95vw;
    }
    .idex-modal__grid {
        grid-template-columns: 1fr;
    }
    .idex-modal__left {
        padding: 32px 24px;
        min-height: auto;
    }
    .idex-modal__right {
        padding: 24px;
    }
    .idex-modal__title {
        font-size: 32px;
    }
}