/*
 * SAPN Smart Pool UI
 * V41B6
 */

.sapn-smart-pool-card {
    position: relative;
    grid-column: 1 / -1;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 18px;
    padding: 20px;
    margin: 0;
    background:
        radial-gradient(
            circle at top right,
            rgba(108, 92, 231, .12),
            transparent 38%
        ),
        rgba(18, 23, 34, .78);
    overflow: hidden;
}

.sapn-smart-pool-card * {
    box-sizing: border-box;
}

.sapn-smart-pool-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.sapn-smart-pool-title {
    min-width: 0;
}

.sapn-smart-pool-title strong {
    display: block;
    color: #f8fafc;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
}

.sapn-smart-pool-title small {
    display: block;
    color: #8490a3;
    font-size: 11px;
    margin-top: 4px;
}

.sapn-smart-pool-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(16, 185, 129, .12);
    color: #10b981;
    font-size: 11px;
    font-weight: 800;
}

.sapn-smart-pool-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.sapn-smart-pool-stat {
    min-width: 0;
    padding: 13px 14px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(148, 163, 184, .08);
}

.sapn-smart-pool-stat span {
    display: block;
    color: #7f8a9c;
    font-size: 10px;
    margin-bottom: 7px;
}

.sapn-smart-pool-stat strong {
    display: block;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sapn-smart-pool-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 11px 13px;
    border-radius: 12px;
    background: rgba(99, 102, 241, .07);
    color: #8c96aa;
    font-size: 10px;
    line-height: 1.8;
}

.sapn-smart-pool-note::before {
    content: "●";
    color: #10b981;
    flex: 0 0 auto;
}

.sapn-smart-hidden-legacy-node {
    display: none !important;
}

.sapn-smart-inline-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(124, 58, 237, .12);
    color: #a78bfa;
    font-size: 9px;
    font-weight: 800;
    margin-inline-start: 6px;
}

@media (max-width: 760px) {
    .sapn-smart-pool-card {
        padding: 16px;
        border-radius: 16px;
    }

    .sapn-smart-pool-head {
        gap: 10px;
    }

    .sapn-smart-pool-title strong {
        font-size: 16px;
    }

    .sapn-smart-pool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sapn-smart-pool-stat {
        padding: 11px;
    }

    .sapn-smart-pool-stat strong {
        font-size: 13px;
    }
}
