/* Model Config Card Modal */
.model-config-content {
    width: min(640px, 95vw);
    max-height: 92vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 22px;
    gap: 16px;
    box-sizing: border-box;
}

.model-config-content::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.model-config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.model-config-header h3 {
    margin: 0;
    text-align: left;
}

.model-config-image-wrap {
    border: 1px solid #1e293b;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.55);
    overflow: hidden;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    position: relative;
}

.model-config-image {
    width: 100%;
    height: 260px;
    object-fit: contain;
    object-position: center;
    display: block;
}

.model-config-image-wrap::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.model-config-image-wrap.no-image::before {
    opacity: 1;
}

.model-config-image-placeholder {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.model-config-image-placeholder.show {
    opacity: 1;
}

.model-config-image-placeholder i {
    font-size: 80px;
    color: rgba(6, 182, 212, 0.4);
}

.model-config-image-wrap.no-image .model-config-image {
    display: none;
}

.model-config-name-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.model-config-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
    font-size: 1.05rem;
    font-weight: 600;
}

.model-config-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.model-config-model {
    font-size: 1.9rem;
    line-height: 1.15;
    font-weight: 700;
    color: #f8fafc;
}

.model-config-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.model-config-spec {
    border: 1px solid #334155;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.65);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.model-config-spec-label {
    font-size: 0.78rem;
    color: #94a3b8;
}

.model-config-spec-value {
    font-size: 0.95rem;
    color: #f8fafc;
    font-weight: 600;
}

.model-config-choose-btn {
    width: 100%;
    margin-top: 4px;
    border: 1px solid #334155;
    background: rgba(255,255,255,0.06);
    color: #f8fafc;
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.model-config-choose-btn:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.65);
}

@media (max-width: 768px) {
    .model-config-content {
        width: min(96vw, 560px);
        padding: 16px;
        gap: 12px;
    }

    .model-config-image {
        height: 170px;
    }

    .model-config-model {
        font-size: 1.45rem;
    }

    .model-config-specs-grid {
        grid-template-columns: 1fr;
    }
}
