/**
 * Popup « Plan de sortie rapide » (Mes wallets / Mes cryptomonnaies).
 * Aligné visuellement sur les tableaux patrimoine (tons #3DB2FF, surfaces sombres).
 */

.liofo-epq-row-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    color: #3DB2FF;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-family: inherit;
}
.liofo-epq-row-btn:hover {
    color: #6bc9ff;
}

a.liofo-epq-external-link {
    color: #3db2ff;
    font-size: 0.85rem;
    font-weight: 600;
}
a.liofo-epq-external-link:hover {
    color: #6bc9ff;
}

/**
 * Conteneur racine : même principe que crypto-popup.js — voile en absolute
 * dans un fixed plein viewport (évite les bugs d’empilement flex + enfant fixed).
 * z-index au-dessus des modales internes (ex. .liofo-mh-modal à 100050) et du popup crypto (10000).
 */
#liofo-epq-overlay {
    position: fixed;
    inset: 0;
    z-index: 100120;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(0.75rem, 3vw, 1.5rem);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    pointer-events: auto;
}
#liofo-epq-overlay.is-open {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.liofo-epq-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(2px);
}

.liofo-epq-dialog {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: min(520px, 100%);
    max-height: min(88vh, 900px);
    display: flex;
    flex-direction: column;
    margin: auto;
    border-radius: 12px;
    border: 1px solid rgba(61, 178, 255, 0.28);
    background: linear-gradient(165deg, rgba(22, 28, 38, 0.98) 0%, rgba(12, 14, 20, 0.98) 100%);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    color: #e2e8f0;
    text-align: left;
}

.liofo-epq-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.liofo-epq-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #2e2e2e;
    flex-shrink: 0;
}
.liofo-epq-logo-ph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    background: linear-gradient(135deg, #3db2ff 0%, #1a1a2e 100%);
}

.liofo-epq-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #3db2ff;
}
.liofo-epq-sub {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    color: rgba(226, 232, 240, 0.82);
}

.liofo-epq-close {
    margin-left: auto;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}
.liofo-epq-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.liofo-epq-body {
    padding: 0.85rem 1.1rem 1rem;
    overflow-y: auto;
    flex: 1;
}

.liofo-epq-strategy-pill {
    display: inline-block;
    margin: 0.35rem 0 0.5rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: rgba(61, 178, 255, 0.12);
    border: 1px solid rgba(61, 178, 255, 0.35);
    color: #bae6fd;
}

.liofo-epq-strategy-wrap {
    border: 1px solid rgba(61, 178, 255, 0.2);
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    margin: 0 0 0.65rem;
    background: rgba(15, 23, 42, 0.35);
}
.liofo-epq-strategy-top {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}
.liofo-epq-strategy-k {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(148, 163, 184, 0.95);
}

.liofo-epq-muted {
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.95);
    margin: 0 0 0.65rem;
    line-height: 1.4;
}
.liofo-epq-muted--tight {
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.liofo-epq-field {
    margin-bottom: 0.75rem;
}
.liofo-epq-field label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(148, 163, 184, 0.95);
    margin-bottom: 0.25rem;
}
.liofo-epq-field input[type="number"] {
    width: 100%;
    max-width: 120px;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    color: #f1f5f9;
    font-size: 0.9rem;
}

.liofo-epq-guided {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.5rem 0 0.75rem;
}
.liofo-epq-chip {
    border: 1px solid rgba(61, 178, 255, 0.35);
    background: rgba(61, 178, 255, 0.08);
    color: #e0f2fe;
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.liofo-epq-chip:hover {
    background: rgba(61, 178, 255, 0.18);
}
.liofo-epq-chip.is-active {
    border-color: rgba(56, 189, 248, 0.9);
    background: rgba(14, 116, 144, 0.45);
    color: #f0f9ff;
}

.liofo-epq-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    margin-top: 0.35rem;
}
.liofo-epq-table th,
.liofo-epq-table td {
    padding: 0.45rem 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}
.liofo-epq-table th {
    color: rgba(148, 163, 184, 0.95);
    font-weight: 600;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.liofo-epq-tr--summary {
    cursor: pointer;
    transition: background 0.15s;
}
.liofo-epq-tr--summary:hover td {
    background: rgba(61, 178, 255, 0.06);
}
.liofo-epq-line-main {
    display: inline-block;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.78rem;
}
.liofo-epq-tr--detail td {
    background: rgba(0, 0, 0, 0.25);
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}
.liofo-epq-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem 0.65rem;
}
.liofo-epq-detail-grid label {
    display: block;
    font-size: 0.65rem;
    color: rgba(148, 163, 184, 0.9);
    margin-bottom: 0.15rem;
}
.liofo-epq-detail-grid input {
    width: 100%;
    padding: 0.3rem 0.4rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.35);
    color: #f8fafc;
    font-size: 0.8rem;
}

.liofo-epq-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    padding: 0.75rem 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.liofo-epq-btn {
    border-radius: 8px;
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    border: none;
}
.liofo-epq-btn--primary {
    background: #3db2ff;
    color: #0b1220;
}
.liofo-epq-btn--primary:hover {
    background: #2a9de8;
}
.liofo-epq-btn--ghost {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.liofo-epq-btn--ghost:hover {
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.2);
}

.liofo-epq-error {
    padding: 0.65rem;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fecaca;
    font-size: 0.8rem;
    margin-bottom: 0.65rem;
}

.liofo-epq-loading {
    padding: 1.5rem;
    text-align: center;
    color: rgba(148, 163, 184, 0.95);
    font-size: 0.85rem;
}
